Function get_personality_fn

Source
pub fn get_personality_fn(val: &ValueRef) -> Option<ValueRef>
Expand description

Retrieves the personality function attached to the function.

This function wraps the LLVMGetPersonalityFn function from the LLVM core library. The personality function is used in exception handling to provide language-specific semantics for stack unwinding.

§Parameters

  • val: The ValueRef representing the function.

§Returns

Returns an Option<ValueRef> representing the personality function if one is attached to the function, or None if no personality function is present.