Lines Matching refs:CU

530 template <typename Func> static void forBothCUs(DwarfCompileUnit &CU, Func F) {  in forBothCUs()  argument
531 F(CU); in forBothCUs()
532 if (auto *SkelCU = CU.getSkeleton()) in forBothCUs()
533 if (CU.getCUNode()->getSplitDebugInlining()) in forBothCUs()
555 auto &CU = getOrCreateDwarfCompileUnit(SP->getUnit()); in constructAbstractSubprogramScopeDIE() local
556 if (auto *SkelCU = CU.getSkeleton()) { in constructAbstractSubprogramScopeDIE()
557 (shareAcrossDWOCUs() ? CU : SrcCU) in constructAbstractSubprogramScopeDIE()
559 if (CU.getCUNode()->getSplitDebugInlining()) in constructAbstractSubprogramScopeDIE()
562 CU.constructAbstractSubprogramScopeDIE(Scope); in constructAbstractSubprogramScopeDIE()
875 DwarfCompileUnit &CU, DIE &ScopeDIE, in constructCallSiteEntryDIEs() argument
886 CU.addFlag(ScopeDIE, CU.getDwarf5OrGNUAttr(dwarf::DW_AT_call_all_calls)); in constructCallSiteEntryDIEs()
970 (!IsTail || CU.useGNUAnalogForDwarf5Feature()) in constructCallSiteEntryDIEs()
988 DIE &CallSiteDIE = CU.constructCallSiteEntryDIE( in constructCallSiteEntryDIEs()
996 CU.constructCallSiteParmEntryDIEs(CallSiteDIE, Params); in constructCallSiteEntryDIEs()
1076 if (auto *CU = CUMap.lookup(DIUnit)) in getOrCreateDwarfCompileUnit() local
1077 return *CU; in getOrCreateDwarfCompileUnit()
1197 DwarfCompileUnit &CU = getOrCreateDwarfCompileUnit(CUNode); in beginModule() local
1214 CU.getOrCreateGlobalVariableDIE(GV, sortGlobalExprs(GVMap[GV])); in beginModule()
1218 CU.getOrCreateTypeDIE(cast<DIType>(Ty)); in beginModule()
1225 CU.getOrCreateTypeDIE(RT); in beginModule()
1248 [&](DwarfCompileUnit &CU) { CU.finishSubprogramDefinition(SP); }); in finishSubprogramDefinitions() argument
1412 DwarfCompileUnit *CU = &*P.second; in endModule() local
1418 CU->getOrCreateImportedEntityDIE(IE); in endModule()
1420 for (const auto *D : CU->getDeferredLocalDecls()) { in endModule()
1422 CU->getOrCreateImportedEntityDIE(IE); in endModule()
1428 CU->createBaseTypeDIEs(); in endModule()
1502 void DwarfDebug::ensureAbstractEntityIsCreatedIfScoped(DwarfCompileUnit &CU, in ensureAbstractEntityIsCreatedIfScoped() argument
1504 if (CU.getExistingAbstractEntity(Node)) in ensureAbstractEntityIsCreatedIfScoped()
1509 CU.createAbstractEntity(Node, Scope); in ensureAbstractEntityIsCreatedIfScoped()
2225 DwarfCompileUnit &CU = getOrCreateDwarfCompileUnit(SP->getUnit()); in beginFunctionImpl() local
2228 getDwarfCompileUnitIDForLineTable(CU)); in beginFunctionImpl()
2236 DwarfDebug::getDwarfCompileUnitIDForLineTable(const DwarfCompileUnit &CU) { in getDwarfCompileUnitIDForLineTable() argument
2244 return CU.getUniqueID(); in getDwarfCompileUnitIDForLineTable()
2247 void DwarfDebug::terminateLineTable(const DwarfCompileUnit *CU) { in terminateLineTable() argument
2248 const auto &CURanges = CU->getRanges(); in terminateLineTable()
2250 getDwarfCompileUnitIDForLineTable(*CU)); in terminateLineTable()
2448 static dwarf::PubIndexEntryDescriptor computeIndexValue(DwarfUnit *CU, in computeIndexValue() argument
2480 dwarf::isCPlusPlus((dwarf::SourceLanguage)CU->getLanguage()) in computeIndexValue()
2525 void DwarfDebug::emitSectionReference(const DwarfCompileUnit &CU) { in emitSectionReference() argument
2527 Asm->emitDwarfOffset(CU.getSection()->getBeginSymbol(), in emitSectionReference()
2528 CU.getDebugSectionOffset()); in emitSectionReference()
2530 Asm->emitDwarfSymbolReference(CU.getLabelBegin()); in emitSectionReference()
2594 const DwarfCompileUnit *CU) { in emitDebugLocEntry() argument
2621 Streamer.emitDIERef(*CU->ExprRefedBaseTypes[Op.getRawOperand(I)].Die); in emitDebugLocEntry()
2762 const DwarfCompileUnit *CU) { in emitDebugLocEntryLocation() argument
2777 emitDebugLocEntry(Streamer, Entry, CU); in emitDebugLocEntryLocation()
2821 const DwarfCompileUnit &CU, unsigned BaseAddressx, unsigned OffsetPair, in emitRangeList() argument
2840 const MCSymbol *CUBase = CU.getBaseAddress(); in emitRangeList()
2917 *List.CU, dwarf::DW_LLE_base_addressx, in emitLocList()
2922 DD.emitDebugLocEntryLocation(E, List.CU); in emitLocList()
2980 emitDebugLocEntryLocation(Entry, List.CU); in emitDebugLocDWO()
3027 assert(Cur.CU); in emitDebugARanges()
3028 Spans[Cur.CU].push_back(Span); in emitDebugARanges()
3043 if (Cur.CU != Prev.CU) { in emitDebugARanges()
3047 assert(Prev.CU); in emitDebugARanges()
3048 Spans[Prev.CU].push_back(Span); in emitDebugARanges()
3063 DwarfCompileUnit *CU = it.first; in emitDebugARanges() local
3064 CUs.push_back(CU); in emitDebugARanges()
3073 for (DwarfCompileUnit *CU : CUs) { in emitDebugARanges()
3074 std::vector<ArangeSpan> &List = Spans[CU]; in emitDebugARanges()
3077 if (auto *Skel = CU->getSkeleton()) in emitDebugARanges()
3078 CU = Skel; in emitDebugARanges()
3102 emitSectionReference(*CU); in emitDebugARanges()
3143 emitRangeList(DD, Asm, List.Label, List.Ranges, *List.CU, in emitRangeList()
3147 List.CU->getCUNode()->getRangesBaseAddress() || in emitRangeList()
3194 const DwarfCompileUnit &CU, uint16_t DwarfVersion) { in emitMacroHeader() argument
3214 Asm->emitDwarfSymbolReference(CU.getLineTableStartSym()); in emitMacroHeader()
3351 DwarfCompileUnit &DwarfDebug::constructSkeletonCU(const DwarfCompileUnit &CU) { in constructSkeletonCU() argument
3354 CU.getUniqueID(), CU.getCUNode(), Asm, this, &SkeletonHolder, in constructSkeletonCU()
3364 initSkeletonUnit(CU, NewCU.getUnitDie(), std::move(OwnedUnit)); in constructSkeletonCU()
3415 MCDwarfDwoLineTable *DwarfDebug::getDwoLineTable(const DwarfCompileUnit &CU) { in getDwoLineTable() argument
3418 const DICompileUnit *DIUnit = CU.getCUNode(); in getDwoLineTable()
3436 void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU, in addDwarfTypeUnitType() argument
3447 CU.addDIETypeSignature(RefDie, Ins.first->second); in addDwarfTypeUnitType()
3456 CU, Asm, this, &InfoHolder, NumTypeUnitsCreated++, getDwoLineTable(CU)); in addDwarfTypeUnitType()
3462 CU.getLanguage()); in addDwarfTypeUnitType()
3491 CU.applyStmtList(UnitDie); in addDwarfTypeUnitType()
3519 setCurrentDWARF5AccelTable(DWARF5AccelTableKind::CU); in addDwarfTypeUnitType()
3520 CU.constructTypeDIE(RefDie, cast<DICompositeType>(CTy)); in addDwarfTypeUnitType()
3540 setCurrentDWARF5AccelTable(DWARF5AccelTableKind::CU); in addDwarfTypeUnitType()
3542 CU.addDIETypeSignature(RefDie, Signature); in addDwarfTypeUnitType()
3664 bool DwarfDebug::alwaysUseRanges(const DwarfCompileUnit &CU) const { in alwaysUseRanges()