Lines Matching refs:CU
63 for (auto *CU : M.debug_compile_units())
64 processCompileUnit(CU);
76 void DebugInfoFinder::processCompileUnit(DICompileUnit *CU) {
77 if (!addCompileUnit(CU))
79 for (auto DIG : CU->getGlobalVariables()) {
86 for (auto *ET : CU->getEnumTypes())
88 for (auto *RT : CU->getRetainedTypes())
93 for (auto *Import : CU->getImportedEntities()) {
155 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) {
156 addCompileUnit(CU);
239 bool DebugInfoFinder::addCompileUnit(DICompileUnit *CU) {
240 if (!CU)
242 if (!NodesSeen.insert(CU).second)
245 CUs.push_back(CU);
475 DICompileUnit *getReplacementCU(DICompileUnit *CU) {
477 if (CU->getDWOId())
480 auto *File = cast_or_null<DIFile>(map(CU->getFile()));
486 CU->getContext(), CU->getSourceLanguage(), File, CU->getProducer(),
487 CU->isOptimized(), CU->getFlags(), CU->getRuntimeVersion(),
488 CU->getSplitDebugFilename(), DICompileUnit::LineTablesOnly, EnumTypes,
489 RetainedTypes, GlobalVariables, ImportedEntities, CU->getMacros(),
490 CU->getDWOId(), CU->getSplitDebugInlining(),
491 CU->getDebugInfoForProfiling(), CU->getNameTableKind(),
492 CU->getRangesBaseAddress());
530 if (auto *CU = dyn_cast<DICompileUnit>(N))
531 return getReplacementCU(CU);
604 // Delete non-CU debug info named metadata nodes.