ΒΆextern void
thinlto_codegen_add_must_preserve_symbol(
thinlto_code_gen_t cg,
const char* name,
int length)
extern void
thinlto_codegen_add_must_preserve_symbol(
thinlto_code_gen_t cg,
const char* name,
int length)
Description
Adds a symbol to the list of global symbols that must exist in the final generated code. If a function is not listed there, it might be inlined into every usage and optimized away. For every single module, the functions referenced from code outside of the ThinLTO modules need to be added here.
Declared at: llvm/include/llvm-c/lto.h:801
Parameters
- thinlto_code_gen_t cg
- const char* name
- int length