Lines Matching refs:TheCU

422 void DwarfDebug::constructAndAddImportedEntityDIE(DwarfCompileUnit &TheCU,  in constructAndAddImportedEntityDIE()  argument
425 if (DIE *D = TheCU.getOrCreateContextDIE(Module->getScope())) in constructAndAddImportedEntityDIE()
426 D->addChild(TheCU.constructImportedEntityDIE(Module)); in constructAndAddImportedEntityDIE()
516 DICompileUnit TheCU = cast<MDCompileUnit>(N); in collectDeadVariables() local
519 static_cast<DwarfCompileUnit *>(CUMap.lookup(TheCU)); in collectDeadVariables()
521 for (auto *SP : TheCU->getSubprograms()) { in collectDeadVariables()
543 auto &TheCU = *P.second; in finalizeModuleInfo() local
546 TheCU.constructContainingTypeDIEs(); in finalizeModuleInfo()
551 auto *SkCU = TheCU.getSkeleton(); in finalizeModuleInfo()
554 uint64_t ID = DIEHash(Asm).computeCUSignature(TheCU.getUnitDie()); in finalizeModuleInfo()
555 TheCU.addUInt(TheCU.getUnitDie(), dwarf::DW_AT_GNU_dwo_id, in finalizeModuleInfo()
580 DwarfCompileUnit &U = SkCU ? *SkCU : TheCU; in finalizeModuleInfo()
581 if (unsigned NumRanges = TheCU.getRanges().size()) { in finalizeModuleInfo()
589 TheCU.setBaseAddress(TheCU.getRanges().front().getStart()); in finalizeModuleInfo()
590 U.attachRangesOrLowHighPC(U.getUnitDie(), TheCU.takeRanges()); in finalizeModuleInfo()
878 void DwarfDebug::collectVariableInfo(DwarfCompileUnit &TheCU, DISubprogram SP, in collectVariableInfo() argument
919 LocList.CU = &TheCU; in collectVariableInfo()
1109 DwarfCompileUnit *TheCU = SPMap.lookup(FnScope->getScopeNode()); in beginFunction() local
1110 assert(TheCU && "Unable to find compile unit!"); in beginFunction()
1115 Asm->OutStreamer.getContext().setDwarfCompileUnitID(TheCU->getUniqueID()); in beginFunction()
1188 DwarfCompileUnit &TheCU = *SPMap.lookup(SP); in endFunction() local
1191 collectVariableInfo(TheCU, SP, ProcessedVars); in endFunction()
1194 TheCU.addRange(RangeSpan(Asm->getFunctionBegin(), Asm->getFunctionEnd())); in endFunction()
1198 if (TheCU.getCUNode()->getEmissionKind() == DIBuilder::LineTablesOnly && in endFunction()
1230 TheCU.constructSubprogramScopeDIE(FnScope); in endFunction()
1231 if (auto *SkelCU = TheCU.getSkeleton()) in endFunction()
1792 DwarfCompileUnit *TheCU = I.second; in emitDebugRanges() local
1794 if (auto *Skel = TheCU->getSkeleton()) in emitDebugRanges()
1795 TheCU = Skel; in emitDebugRanges()
1798 for (const RangeSpanList &List : TheCU->getRangeLists()) { in emitDebugRanges()
1807 if (auto *Base = TheCU->getBaseAddress()) { in emitDebugRanges()