ΒΆextern void lto_codegen_set_module(
    lto_code_gen_t cg,
    lto_module_t mod)

Description

Sets the object module for code generation. This will transfer the ownership of the module to the code generator. \c cg and \c mod must both be in the same context.

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

Parameters

lto_code_gen_t cg
lto_module_t mod