pub fn get_gc(fn_val: &ValueRef) -> Option<String>
Expand description
Obtains the name of the garbage collector to use during code generation.
This function wraps the LLVMGetGC
function from the LLVM core library. The garbage collector name
specifies which garbage collection strategy to use for the function.
§Parameters
fn_val
: TheValueRef
representing the function.
§Returns
Returns a raw pointer to a null-terminated string (*const i8
) representing the name of the garbage collector.
If no garbage collector is specified, it may return a null pointer.
§Safety
The returned string should not be modified or freed by the caller.