thinlto_codegen_add_module

Function thinlto_codegen_add_module 

Source
pub unsafe extern "C" fn thinlto_codegen_add_module(
    cg: *mut LLVMOpaqueThinLTOCodeGenerator,
    identifier: *const i8,
    data: *const i8,
    length: i32,
)
Expand description

Add a module to a code generator.

Identifier must be unique among all the modules in the code generator. The data buffer remains owned by the client, and must live at least as long as the code generator.

Returns null on failure.