llvm::LTOCodeGenerator::compile_to_file

Compile the merged module into a single output file; the path to output file is returned to the caller via argument "name". Return true on success.

Synopsis

Declared in <llvm/LTO/legacy/LTOCodeGenerator.h>

bool
compile_to_file(char const** Name);

Description

NOTE

It is up to the linker to remove the intermediate output file. Do not try to remove the object file in LTOCodeGenerator's destructor as we don't who (LTOCodeGenerator or the output file) will last longer.

Return Value

True on success.

Parameters

NameDescription
NameSet on success to the path of the generated output file.