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

Method flush

src/lib/Bitcode/Reader/MetadataLoader.cpp:390–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void PlaceholderQueue::flush(BitcodeReaderMetadataList &MetadataList) {
391 while (!PHs.empty()) {
392 auto *MD = MetadataList.lookup(PHs.front().getID());
393 assert(MD && "Flushing placeholder on unassigned MD");
394#ifndef NDEBUG
395 if (auto *MDN = dyn_cast<MDNode>(MD))
396 assert(MDN->isResolved() &&
397 "Flushing Placeholder while cycles aren't resolved");
398#endif
399 PHs.front().replaceUseWith(MD);
400 PHs.pop_front();
401 }
402}
403
404} // anonynous namespace
405

Callers 1

Calls 8

replaceUseWithMethod · 0.80
assertFunction · 0.50
emptyMethod · 0.45
lookupMethod · 0.45
getIDMethod · 0.45
frontMethod · 0.45
isResolvedMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected