llvm_sys::lto

Function thinlto_codegen_add_must_preserve_symbol

Source
pub unsafe extern "C" fn thinlto_codegen_add_must_preserve_symbol(
    cg: thinlto_code_gen_t,
    name: *const c_char,
    length: c_int,
)
Expand description

Add a symbol to the list of global symbols that must exist in the final generated code.

Functions not listed may be inlined in every usage and optimized away.