Function get_prefix_data

Source
pub fn get_prefix_data(fn_val: &ValueRef) -> Option<ValueRef>
Expand description

Retrieves the prefix data associated with a function.

This function wraps the LLVMGetPrefixData function from the LLVM core library. It obtains the prefix data attached to the specified function. Prefix data is used to attach additional information to functions.

§Parameters

  • fn_val: The ValueRef representing the function.

§Returns

Returns an Option<ValueRef> containing the prefix data if it exists, or None otherwise.

§Safety

  • The ValueRef must represent a valid function within a module.
  • The returned ValueRef should not be used if it is None.