Lines Matching refs:CU
353 template <typename Func> void forBothCUs(DwarfCompileUnit &CU, Func F) { in forBothCUs() argument
354 F(CU); in forBothCUs()
355 if (auto *SkelCU = CU.getSkeleton()) in forBothCUs()
370 auto &CU = SPMap[SP]; in constructAbstractSubprogramScopeDIE() local
371 forBothCUs(*CU, [&](DwarfCompileUnit &CU) { in constructAbstractSubprogramScopeDIE() argument
372 CU.constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
477 DwarfCompileUnit &CU = constructDwarfCompileUnit(CUNode); in beginModule() local
479 CU.addImportedEntity(IE); in beginModule()
481 CU.getOrCreateGlobalVariableDIE(GV); in beginModule()
483 SPMap.insert(std::make_pair(SP, &CU)); in beginModule()
487 CU.getOrCreateTypeDIE(cast<DIType>(resolve(Ty->getRef()))); in beginModule()
495 CU.getOrCreateTypeDIE(RT); in beginModule()
500 constructAndAddImportedEntityDIE(CU, IE); in beginModule()
528 forBothCUs(*P.second, [&](DwarfCompileUnit &CU) { in finishSubprogramDefinitions() argument
529 CU.finishSubprogramDefinition(cast<DISubprogram>(P.first)); in finishSubprogramDefinitions()
1357 static dwarf::PubIndexEntryDescriptor computeIndexValue(DwarfUnit *CU, in computeIndexValue() argument
1376 dwarf::GIEK_TYPE, CU->getLanguage() != dwarf::DW_LANG_C_plus_plus in computeIndexValue()
1584 const DwarfCompileUnit *CU = List.CU; in emitDebugLoc() local
1589 if (auto *Base = CU->getBaseAddress()) { in emitDebugLoc()
1677 if (Cur.CU) in emitDebugARanges()
1678 Spans[Cur.CU].push_back(Span); in emitDebugARanges()
1705 if (Cur.CU != Prev.CU) { in emitDebugARanges()
1709 Spans[Prev.CU].push_back(Span); in emitDebugARanges()
1724 DwarfCompileUnit *CU = it.first; in emitDebugARanges() local
1725 CUs.push_back(CU); in emitDebugARanges()
1734 for (DwarfCompileUnit *CU : CUs) { in emitDebugARanges()
1735 std::vector<ArangeSpan> &List = Spans[CU]; in emitDebugARanges()
1738 if (auto *Skel = CU->getSkeleton()) in emitDebugARanges()
1739 CU = Skel; in emitDebugARanges()
1763 Asm->emitDwarfSymbolReference(CU->getLabelBegin()); in emitDebugARanges()
1854 DwarfCompileUnit &DwarfDebug::constructSkeletonCU(const DwarfCompileUnit &CU) { in constructSkeletonCU() argument
1857 CU.getUniqueID(), CU.getCUNode(), Asm, this, &SkeletonHolder); in constructSkeletonCU()
1863 initSkeletonUnit(CU, NewCU.getUnitDie(), std::move(OwnedUnit)); in constructSkeletonCU()
1900 MCDwarfDwoLineTable *DwarfDebug::getDwoLineTable(const DwarfCompileUnit &CU) { in getDwoLineTable() argument
1904 SplitTypeUnitFileTable.setCompilationDir(CU.getCUNode()->getDirectory()); in getDwoLineTable()
1919 void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU, in addDwarfTypeUnitType() argument
1930 CU.addDIETypeSignature(RefDie, *TU); in addDwarfTypeUnitType()
1938 InfoHolder.getUnits().size() + TypeUnitsUnderConstruction.size(), CU, Asm, in addDwarfTypeUnitType()
1939 this, &InfoHolder, getDwoLineTable(CU)); in addDwarfTypeUnitType()
1947 CU.getLanguage()); in addDwarfTypeUnitType()
1955 CU.applyStmtList(UnitDie); in addDwarfTypeUnitType()
1980 CU.constructTypeDIE(RefDie, cast<DICompositeType>(CTy)); in addDwarfTypeUnitType()
1989 CU.addDIETypeSignature(RefDie, NewTU); in addDwarfTypeUnitType()