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

Method readModuleSummaryIndex

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

Source from the content-addressed store, hash-verified

6090}
6091
6092Error llvm::readModuleSummaryIndex(MemoryBufferRef Buffer,
6093 ModuleSummaryIndex &CombinedIndex,
6094 uint64_t ModuleId) {
6095 Expected<BitcodeModule> BM = getSingleModule(Buffer);
6096 if (!BM)
6097 return BM.takeError();
6098
6099 return BM->readSummary(CombinedIndex, BM->getModuleIdentifier(), ModuleId);
6100}
6101
6102Expected<std::unique_ptr<ModuleSummaryIndex>>
6103llvm::getModuleSummaryIndex(MemoryBufferRef Buffer) {

Callers

nothing calls this directly

Calls 4

getSingleModuleFunction · 0.85
getModuleIdentifierMethod · 0.80
takeErrorMethod · 0.45
readSummaryMethod · 0.45

Tested by

no test coverage detected