Function get_prologue_data

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

Retrieves the prologue data associated with a function.

This function wraps the LLVMGetPrologueData function from the LLVM core library. It obtains the prologue data attached to the specified function. Prologue data is used to attach additional information to functions.

§Parameters

  • fn_val: The ValueRef representing the function.

§Returns

Returns an Option<ValueRef> containing the prologue 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.