MCPcopy Create free account
hub / github.com/GANGE666/xVMP / getLazyBitcodeModule

Method getLazyBitcodeModule

src/lib/Bitcode/Reader/BitcodeReader.cpp:6032–6040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6030}
6031
6032Expected<std::unique_ptr<Module>>
6033llvm::getLazyBitcodeModule(MemoryBufferRef Buffer, LLVMContext &Context,
6034 bool ShouldLazyLoadMetadata, bool IsImporting) {
6035 Expected<BitcodeModule> BM = getSingleModule(Buffer);
6036 if (!BM)
6037 return BM.takeError();
6038
6039 return BM->getLazyModule(Context, ShouldLazyLoadMetadata, IsImporting);
6040}
6041
6042Expected<std::unique_ptr<Module>> llvm::getOwningLazyBitcodeModule(
6043 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context,

Callers

nothing calls this directly

Calls 3

getSingleModuleFunction · 0.85
getLazyModuleMethod · 0.80
takeErrorMethod · 0.45

Tested by

no test coverage detected