Lines Matching refs:CU
64 for (auto *CU : M.debug_compile_units()) in processModule() local
65 processCompileUnit(CU); in processModule()
77 void DebugInfoFinder::processCompileUnit(DICompileUnit *CU) { in processCompileUnit() argument
78 if (!addCompileUnit(CU)) in processCompileUnit()
80 for (auto DIG : CU->getGlobalVariables()) { in processCompileUnit()
87 for (auto *ET : CU->getEnumTypes()) in processCompileUnit()
89 for (auto *RT : CU->getRetainedTypes()) in processCompileUnit()
94 for (auto *Import : CU->getImportedEntities()) { in processCompileUnit()
156 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope() local
157 addCompileUnit(CU); in processScope()
240 bool DebugInfoFinder::addCompileUnit(DICompileUnit *CU) { in addCompileUnit() argument
241 if (!CU) in addCompileUnit()
243 if (!NodesSeen.insert(CU).second) in addCompileUnit()
246 CUs.push_back(CU); in addCompileUnit()
475 DICompileUnit *getReplacementCU(DICompileUnit *CU) { in getReplacementCU() argument
477 if (CU->getDWOId()) in getReplacementCU()
480 auto *File = cast_or_null<DIFile>(map(CU->getFile())); in getReplacementCU()
486 CU->getContext(), CU->getSourceLanguage(), File, CU->getProducer(), in getReplacementCU()
487 CU->isOptimized(), CU->getFlags(), CU->getRuntimeVersion(), in getReplacementCU()
488 CU->getSplitDebugFilename(), DICompileUnit::LineTablesOnly, EnumTypes, in getReplacementCU()
489 RetainedTypes, GlobalVariables, ImportedEntities, CU->getMacros(), in getReplacementCU()
490 CU->getDWOId(), CU->getSplitDebugInlining(), in getReplacementCU()
491 CU->getDebugInfoForProfiling(), CU->getNameTableKind(), in getReplacementCU()
492 CU->getRangesBaseAddress()); in getReplacementCU()
530 if (auto *CU = dyn_cast<DICompileUnit>(N)) in remap() local
531 return getReplacementCU(CU); in remap()