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

Method parseBitcodeFile

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

Source from the content-addressed store, hash-verified

6057}
6058
6059Expected<std::unique_ptr<Module>> llvm::parseBitcodeFile(MemoryBufferRef Buffer,
6060 LLVMContext &Context) {
6061 Expected<BitcodeModule> BM = getSingleModule(Buffer);
6062 if (!BM)
6063 return BM.takeError();
6064
6065 return BM->parseModule(Context);
6066}
6067
6068Expected<std::string> llvm::getBitcodeTargetTriple(MemoryBufferRef Buffer) {
6069 Expected<BitstreamCursor> StreamOrErr = initStream(Buffer);

Callers

nothing calls this directly

Calls 3

getSingleModuleFunction · 0.85
takeErrorMethod · 0.45
parseModuleMethod · 0.45

Tested by

no test coverage detected