ΒΆLLVMBinaryRef LLVMCreateBinary(
    LLVMMemoryBufferRef MemBuf,
    LLVMContextRef Context,
    char** ErrorMessage)

Description

Create a binary file from the given memory buffer. The exact type of the binary file will be inferred automatically, and the appropriate implementation selected. The context may be NULL except if the resulting file is an LLVM IR file. The memory buffer is not consumed by this function. It is the responsibilty of the caller to free it with \c LLVMDisposeMemoryBuffer. If NULL is returned, the \p ErrorMessage parameter is populated with the error's description. It is then the caller's responsibility to free this message by calling \c LLVMDisposeMessage.

Declared at: llvm/include/llvm-c/Object.h:76

Parameters

LLVMMemoryBufferRef MemBuf
LLVMContextRef Context
char** ErrorMessage