ΒΆextern lto_module_t
lto_module_create_in_codegen_context(
    const void* mem,
    size_t length,
    const char* path,
    lto_code_gen_t cg)

Description

Loads an object file in the codegen context. Loads an object file into the same context as \c cg. The module is safe to add using \a lto_codegen_add_module(). Returns NULL on error (check lto_get_error_message() for details).

Declared at: llvm/include/llvm-c/lto.h:218

Parameters

const void* mem
size_t length
const char* path
lto_code_gen_t cg