ΒΆLLVMBool LLVMGetBitcodeModuleInContext2(
    LLVMContextRef ContextRef,
    LLVMMemoryBufferRef MemBuf,
    LLVMModuleRef* OutM)

Description

Reads a module from the given memory buffer, returning via the OutMP parameter a module provider which performs lazy deserialization. Returns 0 on success. Takes ownership of \p MemBuf if (and only if) the module was read successfully.

Declared at: llvm/include/llvm-c/BitReader.h:71

Parameters

LLVMContextRef ContextRef
LLVMMemoryBufferRef MemBuf
LLVMModuleRef* OutM