ΒΆExpected<std::unique_ptr<Binary>> createBinary(
llvm::MemoryBufferRef Source,
llvm::LLVMContext* Context = nullptr,
bool InitContent = true)
Expected<std::unique_ptr<Binary>> createBinary(
llvm::MemoryBufferRef Source,
llvm::LLVMContext* Context = nullptr,
bool InitContent = true)
Description
Create a Binary from Source, autodetecting the file type.
Declared at: llvm/include/llvm/Object/Binary.h:187
Parameters
- llvm::MemoryBufferRef Source
- The data to create the Binary from.
- llvm::LLVMContext* Context = nullptr
- bool InitContent = true