ΒΆextern void thinlto_codegen_add_module(
thinlto_code_gen_t cg,
const char* identifier,
const char* data,
int length)
extern void thinlto_codegen_add_module(
thinlto_code_gen_t cg,
const char* identifier,
const char* data,
int length)
Description
Add a module to a ThinLTO code generator. Identifier has to be unique among all the modules in a code generator. The data buffer stays owned by the client, and is expected to be available for the entire lifetime of the thinlto_code_gen_t it is added to. On failure, returns NULL (check lto_get_error_message() for details).
Declared at: llvm/include/llvm-c/lto.h:667
Parameters
- thinlto_code_gen_t cg
- const char* identifier
- const char* data
- int length