ΒΆLLVMBool LLVMPrintModuleToFile(
    LLVMModuleRef M,
    const char* Filename,
    char** ErrorMessage)

Description

Print a representation of a module to a file. The ErrorMessage needs to be disposed with LLVMDisposeMessage. Returns 0 on success, 1 otherwise.

Declared at: llvm/include/llvm-c/Core.h:817

Parameters

LLVMModuleRef M
const char* Filename
char** ErrorMessage