Home | History | Annotate | Download | only in AsmPrinter

Lines Matching defs:TheCU

361 void DwarfDebug::addScopeRangeList(DwarfCompileUnit &TheCU, DIE &ScopeDIE,
370 TheCU.addSectionDelta(ScopeDIE, dwarf::DW_AT_ranges, RangeSym,
373 addSectionLabel(*Asm, TheCU, ScopeDIE, dwarf::DW_AT_ranges, RangeSym,
383 TheCU.addRangeList(std::move(List));
386 void DwarfDebug::attachRangesOrLowHighPC(DwarfCompileUnit &TheCU, DIE &Die,
390 attachLowHighPC(TheCU, Die, getLabelBeforeInsn(Ranges.front().first),
393 addScopeRangeList(TheCU, Die, Ranges);
399 DwarfDebug::constructLexicalScopeDIE(DwarfCompileUnit &TheCU,
408 attachRangesOrLowHighPC(TheCU, *ScopeDIE, Scope->getRanges());
416 DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
427 TheCU.addDIEEntry(*ScopeDIE, dwarf::DW_AT_abstract_origin, *OriginDIE);
429 attachRangesOrLowHighPC(TheCU, *ScopeDIE, Scope->getRanges());
435 TheCU.addUInt(*ScopeDIE, dwarf::DW_AT_call_file, None,
436 TheCU.getOrCreateSourceID(DL.getFilename(), DL.getDirectory()));
437 TheCU.addUInt(*ScopeDIE, dwarf::DW_AT_call_line, None, DL.getLineNumber());
446 static std::unique_ptr<DIE> constructVariableDIE(DwarfCompileUnit &TheCU,
450 auto Var = TheCU.constructVariableDIE(DV, Scope.isAbstractScope());
457 DwarfCompileUnit &TheCU, LexicalScope *Scope,
466 constructVariableDIE(TheCU, *ArgDV, *Scope, ObjectPointer));
480 Children.push_back(constructVariableDIE(TheCU, *DV, *Scope, ObjectPointer));
483 if (std::unique_ptr<DIE> Nested = constructScopeDIE(TheCU, LS))
488 void DwarfDebug::createAndAddScopeChildren(DwarfCompileUnit &TheCU,
492 if (DIE *ObjectPointer = createScopeChildrenDIE(TheCU, Scope, Children))
493 TheCU.addDIEEntry(ScopeDIE, dwarf::DW_AT_object_pointer, *ObjectPointer);
500 void DwarfDebug::constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
539 DIE &DwarfDebug::constructSubprogramScopeDIE(DwarfCompileUnit &TheCU,
550 DIE &ScopeDIE = updateSubprogramScopeDIE(TheCU, Sub);
552 createAndAddScopeChildren(TheCU, Scope, ScopeDIE);
558 std::unique_ptr<DIE> DwarfDebug::constructScopeDIE(DwarfCompileUnit &TheCU,
577 ScopeDIE = constructInlinedScopeDIE(TheCU, Scope);
581 createScopeChildrenDIE(TheCU, Scope, Children);
589 createScopeChildrenDIE(TheCU, Scope, Children);
600 ScopeDIE = constructLexicalScopeDIE(TheCU, Scope);
604 constructImportedEntityDIE(TheCU, i->second, *ScopeDIE);
684 void DwarfDebug::constructImportedEntityDIE(DwarfCompileUnit &TheCU,
688 if (DIE *D = TheCU.getOrCreateContextDIE(Module.getContext()))
689 constructImportedEntityDIE(TheCU, Module, *D);
692 void DwarfDebug::constructImportedEntityDIE(DwarfCompileUnit &TheCU,
696 return constructImportedEntityDIE(TheCU, Module, Context);
699 void DwarfDebug::constructImportedEntityDIE(DwarfCompileUnit &TheCU,
704 DIE &IMDie = TheCU.createAndAddDIE(Module.getTag(), Context, Module);
708 EntityDie = TheCU.getOrCreateNameSpace(DINameSpace(Entity));
710 EntityDie = TheCU.getOrCreateSubprogramDIE(DISubprogram(Entity));
712 EntityDie = TheCU.getOrCreateTypeDIE(DIType(Entity));
714 EntityDie = TheCU.getDIE(Entity);
715 TheCU.addSourceLine(IMDie, Module.getLineNumber(),
718 TheCU.addDIEEntry(IMDie, dwarf::DW_AT_import, *EntityDie);
721 TheCU.addString(IMDie, dwarf::DW_AT_name, Name);
812 DICompileUnit TheCU(N);
815 static_cast<DwarfCompileUnit *>(CUMap.lookup(TheCU));
816 DIArray Subprograms = TheCU.getSubprograms();
847 DICompileUnit TheCU(N);
850 static_cast<DwarfCompileUnit *>(CUMap.lookup(TheCU));
852 DIArray Subprograms = TheCU.getSubprograms();
1193 DwarfCompileUnit *TheCU = SPMap.lookup(FnScope->getScopeNode());
1269 DebugLocEntry Loc(StartLabel, EndLabel, getDebugLocValue(Begin), TheCU);
1447 DwarfCompileUnit *TheCU = SPMap.lookup(FnScope->getScopeNode());
1448 assert(TheCU && "Unable to find compile unit!");
1453 Asm->OutStreamer.getContext().setDwarfCompileUnitID(TheCU->getUniqueID());
1567 DwarfCompileUnit &TheCU = *SPMap.lookup(FnScope->getScopeNode());
1583 constructAbstractSubprogramScopeDIE(TheCU, AScope);
1586 DIE &CurFnDIE = constructSubprogramScopeDIE(TheCU, FnScope);
1588 TheCU.addFlag(CurFnDIE, dwarf::DW_AT_APPLE_omit_frame_ptr);
1592 TheCU.addRange(std::move(Span));
1594 PrevCU = &TheCU;
2239 DwarfCompileUnit *TheCU = I.second;
2242 for (const RangeSpanList &List : TheCU->getRangeLists()) {
2251 if (TheCU->getRanges().size() == 1) {
2253 const MCSymbol *Base = TheCU->getRanges()[0].getStart();
2268 if (TheCU->getRanges().size() > 1) {
2270 Asm->GetTempSymbol("cu_ranges", TheCU->getUniqueID()));
2271 for (const RangeSpan &Range : TheCU->getRanges()) {