ΒΆextern lto_bool_t lto_codegen_add_module(
    lto_code_gen_t cg,
    lto_module_t mod)

Description

Add an object module to the set of modules for which code will be generated. Returns true on error (check lto_get_error_message() for details). \c cg and \c mod must both be in the same context. See \a lto_codegen_create_in_local_context() and \a lto_module_create_in_codegen_context().

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

Parameters

lto_code_gen_t cg
lto_module_t mod