ΒΆExpected<std::unique_ptr<Module>>
getLazyBitcodeModule(
llvm::MemoryBufferRef Buffer,
llvm::LLVMContext& Context,
bool ShouldLazyLoadMetadata = false,
bool IsImporting = false)
Expected<std::unique_ptr<Module>>
getLazyBitcodeModule(
llvm::MemoryBufferRef Buffer,
llvm::LLVMContext& Context,
bool ShouldLazyLoadMetadata = false,
bool IsImporting = false)
Description
Read the header of the specified bitcode buffer and prepare for lazy deserialization of function bodies. If ShouldLazyLoadMetadata is true, lazily load metadata as well. If IsImporting is true, this module is being parsed for ThinLTO importing into another module.
Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:139
Parameters
- llvm::MemoryBufferRef Buffer
- llvm::LLVMContext& Context
- bool ShouldLazyLoadMetadata = false
- bool IsImporting = false