1 //===-- llvm/CodeGen/DwarfDebug.h - Dwarf Debug Framework ------*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains support for writing dwarf debug info into asm files.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFDEBUG_H
15 #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFDEBUG_H
17 #include "AsmPrinterHandler.h"
18 #include "DbgValueHistoryCalculator.h"
19 #include "DebugLocEntry.h"
20 #include "DebugLocList.h"
21 #include "DwarfAccelTable.h"
22 #include "DwarfFile.h"
23 #include "llvm/ADT/DenseMap.h"
24 #include "llvm/ADT/FoldingSet.h"
25 #include "llvm/ADT/MapVector.h"
26 #include "llvm/ADT/SmallPtrSet.h"
27 #include "llvm/ADT/StringMap.h"
28 #include "llvm/CodeGen/DIE.h"
29 #include "llvm/CodeGen/LexicalScopes.h"
30 #include "llvm/CodeGen/MachineInstr.h"
31 #include "llvm/IR/DebugInfo.h"
32 #include "llvm/IR/DebugLoc.h"
33 #include "llvm/MC/MCDwarf.h"
34 #include "llvm/MC/MachineLocation.h"
35 #include "llvm/Support/Allocator.h"
44 class DwarfCompileUnit;
48 class MachineModuleInfo;
50 //===----------------------------------------------------------------------===//
51 /// \brief This class is used to record source line correspondence.
53 unsigned Line; // Source line number.
54 unsigned Column; // Source column.
55 unsigned SourceID; // Source ID number.
56 MCSymbol *Label; // Label in code ID number.
58 SrcLineInfo(unsigned L, unsigned C, unsigned S, MCSymbol *label)
59 : Line(L), Column(C), SourceID(S), Label(label) {}
62 unsigned getLine() const { return Line; }
63 unsigned getColumn() const { return Column; }
64 unsigned getSourceID() const { return SourceID; }
65 MCSymbol *getLabel() const { return Label; }
68 //===----------------------------------------------------------------------===//
69 /// \brief This class is used to track local variable information.
71 /// - Variables whose location changes over time have a DotDebugLocOffset and
72 /// the other fields are not used.
74 /// - Variables that are described by multiple MMI table entries have multiple
75 /// expressions and frame indices.
77 DIVariable Var; /// Variable Descriptor.
78 SmallVector<DIExpression, 1> Expr; /// Complex address location expression.
79 DIE *TheDIE; /// Variable DIE.
80 unsigned DotDebugLocOffset; /// Offset in DotDebugLocEntries.
81 const MachineInstr *MInsn; /// DBG_VALUE instruction of the variable.
82 SmallVector<int, 1> FrameIndex; /// Frame index of the variable.
86 /// Construct a DbgVariable from a DIVariable.
87 DbgVariable(DIVariable V, DIExpression E, DwarfDebug *DD, int FI = ~0)
88 : Var(V), Expr(1, E), TheDIE(nullptr), DotDebugLocOffset(~0U),
89 MInsn(nullptr), DD(DD) {
90 FrameIndex.push_back(FI);
91 assert(Var.Verify() && E.Verify());
94 /// Construct a DbgVariable from a DEBUG_VALUE.
95 /// AbstractVar may be NULL.
96 DbgVariable(const MachineInstr *DbgValue, DwarfDebug *DD)
97 : Var(DbgValue->getDebugVariable()),
98 Expr(1, DbgValue->getDebugExpression()), TheDIE(nullptr),
99 DotDebugLocOffset(~0U), MInsn(DbgValue), DD(DD) {
100 FrameIndex.push_back(~0);
104 DIVariable getVariable() const { return Var; }
105 const ArrayRef<DIExpression> getExpression() const { return Expr; }
106 void setDIE(DIE &D) { TheDIE = &D; }
107 DIE *getDIE() const { return TheDIE; }
108 void setDotDebugLocOffset(unsigned O) { DotDebugLocOffset = O; }
109 unsigned getDotDebugLocOffset() const { return DotDebugLocOffset; }
110 StringRef getName() const { return Var.getName(); }
111 const MachineInstr *getMInsn() const { return MInsn; }
112 const ArrayRef<int> getFrameIndex() const { return FrameIndex; }
114 void addMMIEntry(const DbgVariable &V) {
115 assert( DotDebugLocOffset == ~0U && !MInsn && "not an MMI entry");
116 assert(V.DotDebugLocOffset == ~0U && !V.MInsn && "not an MMI entry");
117 assert(V.Var == Var && "conflicting DIVariable");
119 if (V.getFrameIndex().back() != ~0) {
120 auto E = V.getExpression();
121 auto FI = V.getFrameIndex();
122 Expr.append(E.begin(), E.end());
123 FrameIndex.append(FI.begin(), FI.end());
125 assert(Expr.size() > 1
126 ? std::all_of(Expr.begin(), Expr.end(),
127 [](DIExpression &E) { return E.isBitPiece(); })
128 : (true && "conflicting locations for variable"));
131 // Translate tag to proper Dwarf tag.
132 dwarf::Tag getTag() const {
133 if (Var.getTag() == dwarf::DW_TAG_arg_variable)
134 return dwarf::DW_TAG_formal_parameter;
136 return dwarf::DW_TAG_variable;
138 /// \brief Return true if DbgVariable is artificial.
139 bool isArtificial() const {
140 if (Var.isArtificial())
142 if (getType().isArtificial())
147 bool isObjectPointer() const {
148 if (Var.isObjectPointer())
150 if (getType().isObjectPointer())
155 bool variableHasComplexAddress() const {
156 assert(Var.isVariable() && "Invalid complex DbgVariable!");
157 assert(Expr.size() == 1 &&
158 "variableHasComplexAddress() invoked on multi-FI variable");
159 return Expr.back().getNumElements() > 0;
161 bool isBlockByrefVariable() const;
162 DIType getType() const;
165 /// resolve - Look in the DwarfDebug map for the MDNode that
166 /// corresponds to the reference.
167 template <typename T> T resolve(DIRef<T> Ref) const;
171 /// \brief Helper used to pair up a symbol and its DWARF compile unit.
173 SymbolCU(DwarfCompileUnit *CU, const MCSymbol *Sym) : Sym(Sym), CU(CU) {}
175 DwarfCompileUnit *CU;
178 /// \brief Collects and handles dwarf debug information.
179 class DwarfDebug : public AsmPrinterHandler {
180 // Target of Dwarf emission.
183 // Collected machine module information.
184 MachineModuleInfo *MMI;
186 // All DIEValues are allocated through this allocator.
187 BumpPtrAllocator DIEValueAllocator;
189 // Maps MDNode with its corresponding DwarfCompileUnit.
190 MapVector<const MDNode *, DwarfCompileUnit *> CUMap;
192 // Maps subprogram MDNode with its corresponding DwarfCompileUnit.
193 MapVector<const MDNode *, DwarfCompileUnit *> SPMap;
195 // Maps a CU DIE with its corresponding DwarfCompileUnit.
196 DenseMap<const DIE *, DwarfCompileUnit *> CUDieMap;
198 // List of all labels used in aranges generation.
199 std::vector<SymbolCU> ArangeLabels;
201 // Size of each symbol emitted (for those symbols that have a specific size).
202 DenseMap<const MCSymbol *, uint64_t> SymSize;
204 // Provides a unique id per text section.
205 typedef DenseMap<const MCSection *, SmallVector<SymbolCU, 8> > SectionMapType;
206 SectionMapType SectionMap;
208 LexicalScopes LScopes;
210 // Collection of abstract variables.
211 DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables;
212 SmallVector<std::unique_ptr<DbgVariable>, 64> ConcreteVariables;
214 // Collection of DebugLocEntry. Stored in a linked list so that DIELocLists
215 // can refer to them in spite of insertions into this list.
216 SmallVector<DebugLocList, 4> DotDebugLocEntries;
218 // This is a collection of subprogram MDNodes that are processed to
220 SmallPtrSet<const MDNode *, 16> ProcessedSPNodes;
222 // Maps instruction with label emitted before instruction.
223 DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn;
225 // Maps instruction with label emitted after instruction.
226 DenseMap<const MachineInstr *, MCSymbol *> LabelsAfterInsn;
228 // History of DBG_VALUE and clobber instructions for each user variable.
229 // Variables are listed in order of appearance.
230 DbgValueHistoryMap DbgValues;
232 // Previous instruction's location information. This is used to determine
233 // label location to indicate scope boundries in dwarf debug info.
234 DebugLoc PrevInstLoc;
237 // This location indicates end of function prologue and beginning of function
239 DebugLoc PrologEndLoc;
241 // If nonnull, stores the current machine function we're processing.
242 const MachineFunction *CurFn;
244 // If nonnull, stores the current machine instruction we're processing.
245 const MachineInstr *CurMI;
247 // If nonnull, stores the CU in which the previous subprogram was contained.
248 const DwarfCompileUnit *PrevCU;
250 // Section Symbols: these are assembler temporary labels that are emitted at
251 // the beginning of each supported dwarf section. These are used to form
252 // section offsets and are created by EmitSectionLabels.
253 MCSymbol *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
254 MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
255 MCSymbol *DwarfDebugLocSectionSym, *DwarfLineSectionSym, *DwarfAddrSectionSym;
256 MCSymbol *FunctionBeginSym, *FunctionEndSym;
257 MCSymbol *DwarfInfoDWOSectionSym, *DwarfAbbrevDWOSectionSym;
258 MCSymbol *DwarfTypesDWOSectionSym;
259 MCSymbol *DwarfStrDWOSectionSym;
260 MCSymbol *DwarfGnuPubNamesSectionSym, *DwarfGnuPubTypesSectionSym;
262 // As an optimization, there is no need to emit an entry in the directory
263 // table for the same directory as DW_AT_comp_dir.
264 StringRef CompilationDir;
266 // Counter for assigning globally unique IDs for ranges.
267 unsigned GlobalRangeCount;
269 // Holder for the file specific debug information.
270 DwarfFile InfoHolder;
272 // Holders for the various debug information flags that we might need to
273 // have exposed. See accessor functions below for description.
275 // Holder for imported entities.
276 typedef SmallVector<std::pair<const MDNode *, const MDNode *>, 32>
278 ImportedEntityMap ScopesWithImportedEntities;
280 // Map from MDNodes for user-defined types to the type units that describe
282 DenseMap<const MDNode *, const DwarfTypeUnit *> DwarfTypeUnits;
284 SmallVector<std::pair<std::unique_ptr<DwarfTypeUnit>, DICompositeType>, 1>
285 TypeUnitsUnderConstruction;
287 // Whether to emit the pubnames/pubtypes sections.
288 bool HasDwarfPubSections;
290 // Whether or not to use AT_ranges for compilation units.
293 // Whether we emitted a function into a section other than the default
295 bool UsedNonDefaultText;
297 // Version of dwarf we're emitting.
298 unsigned DwarfVersion;
300 // Maps from a type identifier to the actual MDNode.
301 DITypeIdentifierMap TypeIdentifierMap;
303 // DWARF5 Experimental Options
304 bool HasDwarfAccelTables;
307 // Separated Dwarf Variables
308 // In general these will all be for bits that are left in the
309 // original object file, rather than things that are meant
310 // to be in the .dwo sections.
312 // Holder for the skeleton information.
313 DwarfFile SkeletonHolder;
315 /// Store file names for type units under fission in a line table header that
316 /// will be emitted into debug_line.dwo.
317 // FIXME: replace this with a map from comp_dir to table so that we can emit
318 // multiple tables during LTO each of which uses directory 0, referencing the
319 // comp_dir of all the type units that use it.
320 MCDwarfDwoLineTable SplitTypeUnitFileTable;
322 // True iff there are multiple CUs in this module.
326 AddressPool AddrPool;
328 DwarfAccelTable AccelNames;
329 DwarfAccelTable AccelObjC;
330 DwarfAccelTable AccelNamespace;
331 DwarfAccelTable AccelTypes;
333 DenseMap<const Function *, DISubprogram> FunctionDIs;
335 MCDwarfDwoLineTable *getDwoLineTable(const DwarfCompileUnit &);
337 const SmallVectorImpl<std::unique_ptr<DwarfUnit>> &getUnits() {
338 return InfoHolder.getUnits();
341 /// \brief Find abstract variable associated with Var.
342 DbgVariable *getExistingAbstractVariable(const DIVariable &DV,
343 DIVariable &Cleansed);
344 DbgVariable *getExistingAbstractVariable(const DIVariable &DV);
345 void createAbstractVariable(const DIVariable &DV, LexicalScope *Scope);
346 void ensureAbstractVariableIsCreated(const DIVariable &Var,
347 const MDNode *Scope);
348 void ensureAbstractVariableIsCreatedIfScoped(const DIVariable &Var,
349 const MDNode *Scope);
351 /// \brief Construct a DIE for this abstract scope.
352 void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
354 /// \brief Emit initial Dwarf sections with a label at the start of each one.
355 void emitSectionLabels();
357 /// \brief Compute the size and offset of a DIE given an incoming Offset.
358 unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
360 /// \brief Compute the size and offset of all the DIEs.
361 void computeSizeAndOffsets();
363 /// \brief Collect info for variables that were optimized out.
364 void collectDeadVariables();
366 void finishVariableDefinitions();
368 void finishSubprogramDefinitions();
370 /// \brief Finish off debug information after all functions have been
372 void finalizeModuleInfo();
374 /// \brief Emit labels to close any remaining sections that have been left
378 /// \brief Emit the debug info section.
379 void emitDebugInfo();
381 /// \brief Emit the abbreviation section.
382 void emitAbbreviations();
384 /// \brief Emit the last address of the section and the end of
386 void emitEndOfLineMatrix(unsigned SectionEnd);
388 /// \brief Emit a specified accelerator table.
389 void emitAccel(DwarfAccelTable &Accel, const MCSection *Section,
390 StringRef TableName, StringRef SymName);
392 /// \brief Emit visible names into a hashed accelerator table section.
393 void emitAccelNames();
395 /// \brief Emit objective C classes and categories into a hashed
396 /// accelerator table section.
397 void emitAccelObjC();
399 /// \brief Emit namespace dies into a hashed accelerator table.
400 void emitAccelNamespaces();
402 /// \brief Emit type dies into a hashed accelerator table.
403 void emitAccelTypes();
405 /// \brief Emit visible names into a debug pubnames section.
406 /// \param GnuStyle determines whether or not we want to emit
407 /// additional information into the table ala newer gcc for gdb
409 void emitDebugPubNames(bool GnuStyle = false);
411 /// \brief Emit visible types into a debug pubtypes section.
412 /// \param GnuStyle determines whether or not we want to emit
413 /// additional information into the table ala newer gcc for gdb
415 void emitDebugPubTypes(bool GnuStyle = false);
417 void emitDebugPubSection(
418 bool GnuStyle, const MCSection *PSec, StringRef Name,
419 const StringMap<const DIE *> &(DwarfCompileUnit::*Accessor)() const);
421 /// \brief Emit visible names into a debug str section.
424 /// \brief Emit visible names into a debug loc section.
427 /// \brief Emit visible names into a debug loc dwo section.
428 void emitDebugLocDWO();
430 /// \brief Emit visible names into a debug aranges section.
431 void emitDebugARanges();
433 /// \brief Emit visible names into a debug ranges section.
434 void emitDebugRanges();
436 /// \brief Emit inline info using custom format.
437 void emitDebugInlineInfo();
439 /// DWARF 5 Experimental Split Dwarf Emitters
441 /// \brief Initialize common features of skeleton units.
442 void initSkeletonUnit(const DwarfUnit &U, DIE &Die,
443 std::unique_ptr<DwarfUnit> NewU);
445 /// \brief Construct the split debug info compile unit for the debug info
447 DwarfCompileUnit &constructSkeletonCU(const DwarfCompileUnit &CU);
449 /// \brief Construct the split debug info compile unit for the debug info
451 DwarfTypeUnit &constructSkeletonTU(DwarfTypeUnit &TU);
453 /// \brief Emit the debug info dwo section.
454 void emitDebugInfoDWO();
456 /// \brief Emit the debug abbrev dwo section.
457 void emitDebugAbbrevDWO();
459 /// \brief Emit the debug line dwo section.
460 void emitDebugLineDWO();
462 /// \brief Emit the debug str dwo section.
463 void emitDebugStrDWO();
465 /// Flags to let the linker know we have emitted new style pubnames. Only
466 /// emit it here if we don't have a skeleton CU for split dwarf.
467 void addGnuPubAttributes(DwarfUnit &U, DIE &D) const;
469 /// \brief Create new DwarfCompileUnit for the given metadata node with tag
470 /// DW_TAG_compile_unit.
471 DwarfCompileUnit &constructDwarfCompileUnit(DICompileUnit DIUnit);
473 /// \brief Construct imported_module or imported_declaration DIE.
474 void constructAndAddImportedEntityDIE(DwarfCompileUnit &TheCU,
477 /// \brief Register a source line with debug info. Returns the unique
478 /// label that was emitted and which provides correspondence to the
479 /// source line list.
480 void recordSourceLine(unsigned Line, unsigned Col, const MDNode *Scope,
483 /// \brief Indentify instructions that are marking the beginning of or
484 /// ending of a scope.
485 void identifyScopeMarkers();
487 /// \brief Populate LexicalScope entries with variables' info.
488 void collectVariableInfo(DwarfCompileUnit &TheCU, DISubprogram SP,
489 SmallPtrSetImpl<const MDNode *> &ProcessedVars);
491 /// \brief Build the location list for all DBG_VALUEs in the
492 /// function that describe the same variable.
493 void buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
494 const DbgValueHistoryMap::InstrRanges &Ranges);
496 /// \brief Collect variable information from the side table maintained
498 void collectVariableInfoFromMMITable(SmallPtrSetImpl<const MDNode *> &P);
500 /// \brief Ensure that a label will be emitted before MI.
501 void requestLabelBeforeInsn(const MachineInstr *MI) {
502 LabelsBeforeInsn.insert(std::make_pair(MI, nullptr));
505 /// \brief Ensure that a label will be emitted after MI.
506 void requestLabelAfterInsn(const MachineInstr *MI) {
507 LabelsAfterInsn.insert(std::make_pair(MI, nullptr));
511 //===--------------------------------------------------------------------===//
512 // Main entry points.
514 DwarfDebug(AsmPrinter *A, Module *M);
516 ~DwarfDebug() override;
518 /// \brief Emit all Dwarf sections that should come prior to the
522 /// \brief Emit all Dwarf sections that should come after the content.
523 void endModule() override;
525 /// \brief Gather pre-function debug information.
526 void beginFunction(const MachineFunction *MF) override;
528 /// \brief Gather and emit post-function debug information.
529 void endFunction(const MachineFunction *MF) override;
531 /// \brief Process beginning of an instruction.
532 void beginInstruction(const MachineInstr *MI) override;
534 /// \brief Process end of an instruction.
535 void endInstruction() override;
537 /// \brief Add a DIE to the set of types that we're going to pull into
539 void addDwarfTypeUnitType(DwarfCompileUnit &CU, StringRef Identifier,
540 DIE &Die, DICompositeType CTy);
542 /// \brief Add a label so that arange data can be generated for it.
543 void addArangeLabel(SymbolCU SCU) { ArangeLabels.push_back(SCU); }
545 /// \brief For symbols that have a size designated (e.g. common symbols),
546 /// this tracks that size.
547 void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {
551 /// \brief Recursively Emits a debug information entry.
552 void emitDIE(DIE &Die);
554 // Experimental DWARF5 features.
556 /// \brief Returns whether or not to emit tables that dwarf consumers can
557 /// use to accelerate lookup.
558 bool useDwarfAccelTables() const { return HasDwarfAccelTables; }
560 /// \brief Returns whether or not to change the current debug info for the
561 /// split dwarf proposal support.
562 bool useSplitDwarf() const { return HasSplitDwarf; }
564 /// Returns the Dwarf Version.
565 unsigned getDwarfVersion() const { return DwarfVersion; }
567 /// Returns the section symbol for the .debug_loc section.
568 MCSymbol *getDebugLocSym() const { return DwarfDebugLocSectionSym; }
570 /// Returns the section symbol for the .debug_str section.
571 MCSymbol *getDebugStrSym() const { return DwarfStrSectionSym; }
573 /// Returns the section symbol for the .debug_ranges section.
574 MCSymbol *getRangeSectionSym() const { return DwarfDebugRangeSectionSym; }
576 /// Returns the previous CU that was being updated
577 const DwarfCompileUnit *getPrevCU() const { return PrevCU; }
578 void setPrevCU(const DwarfCompileUnit *PrevCU) { this->PrevCU = PrevCU; }
580 /// Returns the entries for the .debug_loc section.
581 const SmallVectorImpl<DebugLocList> &
582 getDebugLocEntries() const {
583 return DotDebugLocEntries;
586 /// \brief Emit an entry for the debug loc section. This can be used to
587 /// handle an entry that's going to be emitted into the debug loc section.
588 void emitDebugLocEntry(ByteStreamer &Streamer, const DebugLocEntry &Entry);
589 /// \brief emit a single value for the debug loc section.
590 void emitDebugLocValue(ByteStreamer &Streamer,
591 const DebugLocEntry::Value &Value,
592 unsigned PieceOffsetInBits = 0);
593 /// Emits an optimal (=sorted) sequence of DW_OP_pieces.
594 void emitLocPieces(ByteStreamer &Streamer,
595 const DITypeIdentifierMap &Map,
596 ArrayRef<DebugLocEntry::Value> Values);
598 /// Emit the location for a debug loc entry, including the size header.
599 void emitDebugLocEntryLocation(const DebugLocEntry &Entry);
601 /// Find the MDNode for the given reference.
602 template <typename T> T resolve(DIRef<T> Ref) const {
603 return Ref.resolve(TypeIdentifierMap);
606 /// \brief Return the TypeIdentifierMap.
607 const DITypeIdentifierMap &getTypeIdentifierMap() const {
608 return TypeIdentifierMap;
611 /// Find the DwarfCompileUnit for the given CU Die.
612 DwarfCompileUnit *lookupUnit(const DIE *CU) const {
613 return CUDieMap.lookup(CU);
615 /// isSubprogramContext - Return true if Context is either a subprogram
616 /// or another context nested inside a subprogram.
617 bool isSubprogramContext(const MDNode *Context);
619 void addSubprogramNames(DISubprogram SP, DIE &Die);
621 AddressPool &getAddressPool() { return AddrPool; }
623 void addAccelName(StringRef Name, const DIE &Die);
625 void addAccelObjC(StringRef Name, const DIE &Die);
627 void addAccelNamespace(StringRef Name, const DIE &Die);
629 void addAccelType(StringRef Name, const DIE &Die, char Flags);
631 const MachineFunction *getCurrentFunction() const { return CurFn; }
632 const MCSymbol *getFunctionBeginSym() const { return FunctionBeginSym; }
633 const MCSymbol *getFunctionEndSym() const { return FunctionEndSym; }
635 iterator_range<ImportedEntityMap::const_iterator>
636 findImportedEntitiesForScope(const MDNode *Scope) const {
637 return make_range(std::equal_range(
638 ScopesWithImportedEntities.begin(), ScopesWithImportedEntities.end(),
639 std::pair<const MDNode *, const MDNode *>(Scope, nullptr),
643 /// \brief A helper function to check whether the DIE for a given Scope is
644 /// going to be null.
645 bool isLexicalScopeDIENull(LexicalScope *Scope);
647 /// \brief Return Label preceding the instruction.
648 MCSymbol *getLabelBeforeInsn(const MachineInstr *MI);
650 /// \brief Return Label immediately following the instruction.
651 MCSymbol *getLabelAfterInsn(const MachineInstr *MI);
653 // FIXME: Consider rolling ranges up into DwarfDebug since we use a single
654 // range_base anyway, so there's no need to keep them as separate per-CU range
655 // lists. (though one day we might end up with a range.dwo section, in which
656 // case it'd go to DwarfFile)
657 unsigned getNextRangeNumber() { return GlobalRangeCount++; }
659 // FIXME: Sink these functions down into DwarfFile/Dwarf*Unit.
661 SmallPtrSet<const MDNode *, 16> &getProcessedSPNodes() {
662 return ProcessedSPNodes;
665 } // End of namespace llvm