Lines Matching refs:CU

334 template <typename Func> void forBothCUs(DwarfCompileUnit &CU, Func F) {  in forBothCUs()  argument
335 F(CU); in forBothCUs()
336 if (auto *SkelCU = CU.getSkeleton()) in forBothCUs()
351 auto &CU = SPMap[SP]; in constructAbstractSubprogramScopeDIE() local
352 forBothCUs(*CU, [&](DwarfCompileUnit &CU) { in constructAbstractSubprogramScopeDIE() argument
353 CU.constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
450 DwarfCompileUnit &CU = constructDwarfCompileUnit(CUNode); in beginModule() local
459 CU.getOrCreateGlobalVariableDIE(GV); in beginModule()
461 SPMap.insert(std::make_pair(SP, &CU)); in beginModule()
465 CU.getOrCreateTypeDIE(cast<DIType>(resolve(Ty->getRef()))); in beginModule()
470 CU.getOrCreateTypeDIE(cast<DIType>(resolve(Ty->getRef()))); in beginModule()
475 constructAndAddImportedEntityDIE(CU, IE); in beginModule()
503 forBothCUs(*P.second, [&](DwarfCompileUnit &CU) { in finishSubprogramDefinitions() argument
504 CU.finishSubprogramDefinition(cast<DISubprogram>(P.first)); in finishSubprogramDefinitions()
1336 static dwarf::PubIndexEntryDescriptor computeIndexValue(DwarfUnit *CU, in computeIndexValue() argument
1355 dwarf::GIEK_TYPE, CU->getLanguage() != dwarf::DW_LANG_C_plus_plus in computeIndexValue()
1563 const DwarfCompileUnit *CU = List.CU; in emitDebugLoc() local
1568 if (auto *Base = CU->getBaseAddress()) { in emitDebugLoc()
1656 if (Cur.CU) in emitDebugARanges()
1657 Spans[Cur.CU].push_back(Span); in emitDebugARanges()
1684 if (Cur.CU != Prev.CU) { in emitDebugARanges()
1688 Spans[Prev.CU].push_back(Span); in emitDebugARanges()
1703 DwarfCompileUnit *CU = it.first; in emitDebugARanges() local
1704 CUs.push_back(CU); in emitDebugARanges()
1713 for (DwarfCompileUnit *CU : CUs) { in emitDebugARanges()
1714 std::vector<ArangeSpan> &List = Spans[CU]; in emitDebugARanges()
1717 if (auto *Skel = CU->getSkeleton()) in emitDebugARanges()
1718 CU = Skel; in emitDebugARanges()
1742 Asm->emitDwarfSymbolReference(CU->getLabelBegin()); in emitDebugARanges()
1833 DwarfCompileUnit &DwarfDebug::constructSkeletonCU(const DwarfCompileUnit &CU) { in constructSkeletonCU() argument
1836 CU.getUniqueID(), CU.getCUNode(), Asm, this, &SkeletonHolder); in constructSkeletonCU()
1842 initSkeletonUnit(CU, NewCU.getUnitDie(), std::move(OwnedUnit)); in constructSkeletonCU()
1879 MCDwarfDwoLineTable *DwarfDebug::getDwoLineTable(const DwarfCompileUnit &CU) { in getDwoLineTable() argument
1883 SplitTypeUnitFileTable.setCompilationDir(CU.getCUNode()->getDirectory()); in getDwoLineTable()
1898 void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU, in addDwarfTypeUnitType() argument
1909 CU.addDIETypeSignature(RefDie, *TU); in addDwarfTypeUnitType()
1917 InfoHolder.getUnits().size() + TypeUnitsUnderConstruction.size(), CU, Asm, in addDwarfTypeUnitType()
1918 this, &InfoHolder, getDwoLineTable(CU)); in addDwarfTypeUnitType()
1926 CU.getLanguage()); in addDwarfTypeUnitType()
1934 CU.applyStmtList(UnitDie); in addDwarfTypeUnitType()
1959 CU.constructTypeDIE(RefDie, cast<DICompositeType>(CTy)); in addDwarfTypeUnitType()
1968 CU.addDIETypeSignature(RefDie, NewTU); in addDwarfTypeUnitType()