llvm::parseModule

Fuzzer friendly interface for the llvm bitcode parser.

Synopsis

Declared in <llvm/FuzzMutate/IRMutator.h>

std::unique_ptr<Module>
parseModule(
    uint8_t const* Data,
    size_t Size,
    LLVMContext& Context);

Return Value

New module or nullptr in case of error

Parameters

NameDescription
DataBitcode we are going to parse
SizeSize of the 'Data' in bytes
ContextLLVM context used to own the parsed module