reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  151     : DebugHandlerBase(AP), OS(*Asm->OutStreamer), TypeTable(Allocator) {
  156     Asm = nullptr;
  558   if (!Asm || !MMI->hasDebugInfo())
  561   assert(Asm != nullptr);
  642   OS.SwitchSection(Asm->getObjFileLowering().getCOFFDebugTypesSection());
  675   OS.SwitchSection(Asm->getObjFileLowering().getCOFFGlobalTypeHashesSection());
  930       Asm->getObjFileLowering().getCOFFDebugSymbolsSection());
  986   const MCSymbol *Fn = Asm->getSymbol(GV);
 1144   const MachineFunction &MF = *Asm->MF;
 1177     int FrameOffset = TFI->getFrameIndexReference(*Asm->MF, VI.Slot, FrameReg);
 1187       End = End ? End : Asm->getFunctionEnd();
 1211   const TargetRegisterInfo *TRI = Asm->MF->getSubtarget().getRegisterInfo();
 1281       End = Asm->getFunctionEnd();
 1337   CurFn->Begin = Asm->getFunctionBegin();
 1393   if (Asm->TM.getOptLevel() != CodeGenOpt::None &&
 1936       Ty->getSizeInBits() / (8 * Asm->MAI->getCodePointerSize());
 2870   CurFn->End = Asm->getFunctionEnd();
 2887   if (!Asm || !CurFn || MI->isDebugInstr() ||
 2911   maybeRecordLocation(DL, Asm->MF);
 3045     MCSymbol *GVSym = Asm->getSymbol(GV);
 3082     MCSymbol *GVSym = Asm->getSymbol(GV);
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
   87 DebugHandlerBase::DebugHandlerBase(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {}
  130   MCContext &MC = Asm->OutContext;
  132   MCSymbol *Start = Asm->getFunctionBegin();
  188   if (!Asm || !hasDebugInfo(MMI, MF)) {
  207   calculateDbgEntityHistory(MF, Asm->MF->getSubtarget().getRegisterInfo(),
  235         LabelsBeforeInsn[Entries.front().getInstr()] = Asm->getFunctionBegin();
  255           LabelsBeforeInsn[I->getInstr()] = Asm->getFunctionBegin();
  275   PrevLabel = Asm->getFunctionBegin();
  300     Asm->OutStreamer->EmitLabel(PrevLabel);
  332     Asm->OutStreamer->EmitLabel(PrevLabel);
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  348   const Triple &TT = Asm->TM.getTargetTriple();
  352   if (Asm->TM.Options.DebuggerTuning != DebuggerKind::Default)
  353     DebuggerTuning = Asm->TM.Options.DebuggerTuning;
  371   HasSplitDwarf = !Asm->TM.Options.MCOptions.SplitDwarfFile.empty();
  379   unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion;
  417   Asm->OutStreamer->getContext().setDwarfVersion(DwarfVersion);
  773       if (Asm->TM.Options.EnableDebugEntryValues &&
  856       InfoHolder.getUnits().size(), DIUnit, Asm, this, &InfoHolder);
  867   if (!Asm->OutStreamer->hasRawTextSupport() || SingleCU)
  868     Asm->OutStreamer->emitDwarfFile0Directive(
  875     NewCU.setSection(Asm->getObjFileLowering().getDwarfInfoDWOSection());
  878     NewCU.setSection(Asm->getObjFileLowering().getDwarfInfoSection());
  959         .setStringOffsetsStartSym(Asm->createTempSymbol("str_offsets_base"));
  967         Asm->createTempSymbol("rnglists_table_base"));
  971           Asm->createTempSymbol("rnglists_dwo_table_base"));
  976   AddrPool.setLabel(Asm->createTempSymbol("addr_table_base"));
 1053   const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
 1064     DWOName = Asm->TM.Options.MCOptions.SplitDwarfFile;
 1083                       Asm->TM.Options.MCOptions.SplitDwarfFile);
 1085                       Asm->TM.Options.MCOptions.SplitDwarfFile);
 1088           DIEHash(Asm).computeCUSignature(DWOName, TheCU.getUnitDie());
 1140         DebugLocs.setSym(Asm->createTempSymbol("loclists_table_base"));
 1267   for (const auto &VI : Asm->MF->getVariableDbgInfo()) {
 1412       EndLabel = Asm->getFunctionEnd();
 1561     DebugLocStream::ListBuilder List(DebugLocs, TheCU, *Asm, *RegVar, *MInsn);
 1583       Entry.finalize(*Asm, List, BT, TheCU);
 1650       Asm->OutStreamer->getContext().getCurrentDwarfLoc().getLine();
 1770     ::recordSourceLine(*Asm, SP->getScopeLine(), 0, SP, DWARF2_FLAG_IS_STMT,
 1787   SectionLabels.insert(std::make_pair(&Asm->getFunctionBegin()->getSection(),
 1788                                       Asm->getFunctionBegin()));
 1795   if (Asm->OutStreamer->hasRawTextSupport())
 1797     Asm->OutStreamer->getContext().setDwarfCompileUnitID(0);
 1799     Asm->OutStreamer->getContext().setDwarfCompileUnitID(CU.getUniqueID());
 1803       *MF, Asm->OutStreamer->getContext().getDwarfCompileUnitID());
 1822   Asm->OutStreamer->getContext().setDwarfCompileUnitID(0);
 1837   TheCU.addRange({Asm->getFunctionBegin(), Asm->getFunctionEnd()});
 1837   TheCU.addRange({Asm->getFunctionBegin(), Asm->getFunctionEnd()});
 1901   ::recordSourceLine(*Asm, Line, Col, S, Flags,
 1902                      Asm->OutStreamer->getContext().getDwarfCompileUnitID(),
 1920   Holder.emitAbbrevs(Asm->getObjFileLowering().getDwarfAbbrevSection());
 1926       *Asm, Asm->getObjFileLowering().getDwarfStrOffSection(),
 1926       *Asm, Asm->getObjFileLowering().getDwarfStrOffSection(),
 1933   Asm->OutStreamer->SwitchSection(Section);
 1936   emitAppleAccelTable(Asm, Accel, TableName, Section->getBeginSymbol());
 1944   emitDWARF5AccelTable(Asm, AccelDebugNames, *this, getUnits());
 1949   emitAccel(AccelNames, Asm->getObjFileLowering().getDwarfAccelNamesSection(),
 1956   emitAccel(AccelObjC, Asm->getObjFileLowering().getDwarfAccelObjCSection(),
 1963             Asm->getObjFileLowering().getDwarfAccelNamespaceSection(),
 1969   emitAccel(AccelTypes, Asm->getObjFileLowering().getDwarfAccelTypesSection(),
 2052     Asm->OutStreamer->SwitchSection(
 2053         GnuStyle ? Asm->getObjFileLowering().getDwarfGnuPubNamesSection()
 2054                  : Asm->getObjFileLowering().getDwarfPubNamesSection());
 2057     Asm->OutStreamer->SwitchSection(
 2058         GnuStyle ? Asm->getObjFileLowering().getDwarfGnuPubTypesSection()
 2059                  : Asm->getObjFileLowering().getDwarfPubTypesSection());
 2066     Asm->EmitDwarfOffset(CU.getSection()->getBeginSymbol(),
 2069     Asm->emitDwarfSymbolReference(CU.getLabelBegin());
 2079   Asm->OutStreamer->AddComment("Length of Public " + Name + " Info");
 2080   MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + Name + "_begin");
 2081   MCSymbol *EndLabel = Asm->createTempSymbol("pub" + Name + "_end");
 2082   Asm->EmitLabelDifference(EndLabel, BeginLabel, 4);
 2084   Asm->OutStreamer->EmitLabel(BeginLabel);
 2086   Asm->OutStreamer->AddComment("DWARF Version");
 2087   Asm->emitInt16(dwarf::DW_PUBNAMES_VERSION);
 2089   Asm->OutStreamer->AddComment("Offset of Compilation Unit Info");
 2092   Asm->OutStreamer->AddComment("Compilation Unit Length");
 2093   Asm->emitInt32(TheU->getLength());
 2100     Asm->OutStreamer->AddComment("DIE offset");
 2101     Asm->emitInt32(Entity->getOffset());
 2105       Asm->OutStreamer->AddComment(
 2108       Asm->emitInt8(Desc.toBits());
 2111     Asm->OutStreamer->AddComment("External Name");
 2112     Asm->OutStreamer->EmitBytes(StringRef(Name, GI.getKeyLength() + 1));
 2115   Asm->OutStreamer->AddComment("End Mark");
 2116   Asm->emitInt32(0);
 2117   Asm->OutStreamer->EmitLabel(EndLabel);
 2125     StringOffsetsSection = Asm->getObjFileLowering().getDwarfStrOffSection();
 2128   Holder.emitStrings(Asm->getObjFileLowering().getDwarfStrSection(),
 2144   unsigned PtrSize = Asm->MAI->getCodePointerSize();
 2147                           Asm->getDataLayout().isLittleEndian(), PtrSize);
 2164             Asm->EmitULEB128(Offset, nullptr, ULEB128PadSize);
 2167             Asm->EmitULEB128(0, nullptr, ULEB128PadSize);
 2250   Asm->OutStreamer->AddComment("Loc expr size");
 2252     Asm->EmitULEB128(DebugLocs.getBytes(Entry).size());
 2254     Asm->emitInt16(DebugLocs.getBytes(Entry).size());
 2258     Asm->emitInt16(0);
 2262   APByteStreamer Streamer(*Asm);
 2440     Asm->OutStreamer->SwitchSection(
 2441         Asm->getObjFileLowering().getDwarfLoclistsSection());
 2442     TableEnd = emitLoclistsTableHeader(Asm, *this);
 2444     Asm->OutStreamer->SwitchSection(
 2445         Asm->getObjFileLowering().getDwarfLocSection());
 2449     emitLocList(*this, Asm, List);
 2452     Asm->OutStreamer->EmitLabel(TableEnd);
 2457     Asm->OutStreamer->SwitchSection(
 2458         Asm->getObjFileLowering().getDwarfLocDWOSection());
 2459     Asm->OutStreamer->EmitLabel(List.Label);
 2468       Asm->emitInt8(dwarf::DW_LLE_startx_length);
 2470       Asm->EmitULEB128(idx);
 2471       Asm->EmitLabelDifference(Entry.End, Entry.Begin, 4);
 2475     Asm->emitInt8(dwarf::DW_LLE_end_of_list);
 2527       unsigned IA = A.Sym ? Asm->OutStreamer->GetSymbolOrder(A.Sym) : 0;
 2528       unsigned IB = B.Sym ? Asm->OutStreamer->GetSymbolOrder(B.Sym) : 0;
 2540     List.push_back(SymbolCU(nullptr, Asm->OutStreamer->endSection(Section)));
 2561   Asm->OutStreamer->SwitchSection(
 2562       Asm->getObjFileLowering().getDwarfARangesSection());
 2564   unsigned PtrSize = Asm->MAI->getCodePointerSize();
 2603     Asm->OutStreamer->AddComment("Length of ARange Set");
 2604     Asm->emitInt32(ContentSize);
 2605     Asm->OutStreamer->AddComment("DWARF Arange version number");
 2606     Asm->emitInt16(dwarf::DW_ARANGES_VERSION);
 2607     Asm->OutStreamer->AddComment("Offset Into Debug Info Section");
 2609     Asm->OutStreamer->AddComment("Address Size (in bytes)");
 2610     Asm->emitInt8(PtrSize);
 2611     Asm->OutStreamer->AddComment("Segment Size (in bytes)");
 2612     Asm->emitInt8(0);
 2614     Asm->OutStreamer->emitFill(Padding, 0xff);
 2617       Asm->EmitLabelReference(Span.Start, PtrSize);
 2621         Asm->EmitLabelDifference(Span.End, Span.Start, PtrSize);
 2629         Asm->OutStreamer->EmitIntValue(Size, PtrSize);
 2633     Asm->OutStreamer->AddComment("ARange terminator");
 2634     Asm->OutStreamer->EmitIntValue(0, PtrSize);
 2635     Asm->OutStreamer->EmitIntValue(0, PtrSize);
 2679     Asm->OutStreamer->SwitchSection(
 2680         Asm->getObjFileLowering().getDwarfRnglistsSection());
 2681     TableEnd = emitRnglistsTableHeader(Asm, Holder);
 2683     Asm->OutStreamer->SwitchSection(
 2684         Asm->getObjFileLowering().getDwarfRangesSection());
 2686   emitDebugRangesImpl(*this, Asm, Holder, TableEnd);
 2707   Asm->OutStreamer->SwitchSection(
 2708       Asm->getObjFileLowering().getDwarfRnglistsDWOSection());
 2709   MCSymbol *TableEnd = emitRnglistsTableHeader(Asm, Holder);
 2711   emitDebugRangesImpl(*this, Asm, Holder, TableEnd);
 2726   Asm->EmitULEB128(M.getMacinfoType());
 2727   Asm->EmitULEB128(M.getLine());
 2730   Asm->OutStreamer->EmitBytes(Name);
 2733     Asm->emitInt8(' ');
 2734     Asm->OutStreamer->EmitBytes(Value);
 2736   Asm->emitInt8('\0');
 2741   Asm->EmitULEB128(dwarf::DW_MACINFO_start_file);
 2742   Asm->EmitULEB128(F.getLine());
 2743   Asm->EmitULEB128(U.getOrCreateSourceID(F.getFile()));
 2745   Asm->EmitULEB128(dwarf::DW_MACINFO_end_file);
 2759   Asm->OutStreamer->SwitchSection(
 2760       Asm->getObjFileLowering().getDwarfMacinfoSection());
 2771       Asm->OutStreamer->EmitLabel(U.getMacroLabelBegin());
 2775   Asm->OutStreamer->AddComment("End Of Macro List Mark");
 2776   Asm->emitInt8(0);
 2795       CU.getUniqueID(), CU.getCUNode(), Asm, this, &SkeletonHolder);
 2797   NewCU.setSection(Asm->getObjFileLowering().getDwarfInfoSection());
 2821   InfoHolder.emitAbbrevs(Asm->getObjFileLowering().getDwarfAbbrevDWOSection());
 2827       *Asm->OutStreamer, MCDwarfLineTableParams(),
 2828       Asm->getObjFileLowering().getDwarfLineDWOSection());
 2834       *Asm, Asm->getObjFileLowering().getDwarfStrOffDWOSection(),
 2834       *Asm, Asm->getObjFileLowering().getDwarfStrOffDWOSection(),
 2845   MCSection *OffSec = Asm->getObjFileLowering().getDwarfStrOffDWOSection();
 2846   InfoHolder.emitStrings(Asm->getObjFileLowering().getDwarfStrDWOSection(),
 2852   AddrPool.emit(*Asm, Asm->getObjFileLowering().getDwarfAddrSection());
 2852   AddrPool.emit(*Asm, Asm->getObjFileLowering().getDwarfAddrSection());
 2894   auto OwnedUnit = std::make_unique<DwarfTypeUnit>(CU, Asm, this, &InfoHolder,
 2910             ? Asm->getObjFileLowering().getDwarfTypesDWOSection()
 2911             : Asm->getObjFileLowering().getDwarfInfoDWOSection();
 2916             ? Asm->getObjFileLowering().getDwarfTypesSection(Signature)
 2917             : Asm->getObjFileLowering().getDwarfInfoSection(Signature);
 2994   DwarfStringPoolEntryRef Ref = Holder.getStringPool().getEntry(*Asm, Name);
 3033   return Asm->OutStreamer->getContext().getDwarfVersion();
lib/Target/BPF/BTFDebug.cpp
  382     : DebugHandlerBase(AP), OS(*Asm->OutStreamer), SkipInstruction(false),
  804       Asm->EmitLabelReference(FuncInfo.Label, 4);
  818       Asm->EmitLabelReference(LineInfo.Label, 4);
  837         Asm->EmitLabelReference(FieldRelocInfo.Label, 4);
  908   MCSymbol *FuncLabel = Asm->getFunctionBegin();
 1034       MCSymbol *FuncLabel = Asm->getFunctionBegin();
 1111       DataSecEntries[SecName] = std::make_unique<BTFKindDataSec>(Asm, SecName);
 1118     DataSecEntries[SecName]->addVar(VarId, Asm->getSymbol(&Global), Size);