ΒΆLLVMBool LLVMTargetMachineEmitToFile(
    LLVMTargetMachineRef T,
    LLVMModuleRef M,
    char* Filename,
    LLVMCodeGenFileType codegen,
    char** ErrorMessage)

Description

Emits an asm or object file for the given module to the filename. This wraps several c++ only classes (among them a file stream). Returns any error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.

Declared at: llvm/include/llvm-c/TargetMachine.h:132

Parameters

LLVMTargetMachineRef T
LLVMModuleRef M
char* Filename
LLVMCodeGenFileType codegen
char** ErrorMessage