pub fn get_initializer(val: &ValueRef) -> Option<ValueRef>Expand description
Get the initializer for a global variable.
This function wraps the LLVMGetInitializer function from the LLVM core library. It returns the initializer of the
global variable represented by ValueRef. If the global variable has no initializer, the function returns None.
The initializer is the constant value assigned to the global variable at the time of its definition.
ยงReturns
Returns an Option<ValueRef>:
Some(ValueRef)if the global variable has an initializer.Noneif the global variable does not have an initializer.