Function set_personality_fn

Source
pub fn set_personality_fn(val: &ValueRef, personality_fn: &ValueRef)
Expand description

Sets the personality function attached to the function.

This function wraps the LLVMSetPersonalityFn function from the LLVM core library. The personality function is used in exception handling to provide language-specific semantics for stack unwinding. By setting a personality function, you define how exceptions are handled within the function.

ยงParameters

  • val: The ValueRef representing the function.
  • personality_fn: A reference to the ValueRef representing the personality function to attach.