| 6030 | } |
| 6031 | |
| 6032 | Expected<std::unique_ptr<Module>> |
| 6033 | llvm::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 | |
| 6042 | Expected<std::unique_ptr<Module>> llvm::getOwningLazyBitcodeModule( |
| 6043 | std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, |
nothing calls this directly
no test coverage detected