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 CODEGEN_ASMPRINTER_DWARFDEBUG_H__
15 #define CODEGEN_ASMPRINTER_DWARFDEBUG_H__
17 #include "DwarfFile.h"
18 #include "AsmPrinterHandler.h"
20 #include "DbgValueHistoryCalculator.h"
21 #include "DebugLocEntry.h"
22 #include "DebugLocList.h"
23 #include "DwarfAccelTable.h"
24 #include "llvm/ADT/DenseMap.h"
25 #include "llvm/ADT/MapVector.h"
26 #include "llvm/ADT/SmallPtrSet.h"
27 #include "llvm/ADT/StringMap.h"
28 #include "llvm/ADT/FoldingSet.h"
29 #include "llvm/CodeGen/LexicalScopes.h"
30 #include "llvm/IR/DebugInfo.h"
31 #include "llvm/IR/DebugLoc.h"
32 #include "llvm/MC/MachineLocation.h"
33 #include "llvm/MC/MCDwarf.h"
34 #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 DIVariable Var; // Variable Descriptor.
72 DIE *TheDIE; // Variable DIE.
73 unsigned DotDebugLocOffset; // Offset in DotDebugLocEntries.
74 DbgVariable *AbsVar; // Corresponding Abstract variable, if any.
75 const MachineInstr *MInsn; // DBG_VALUE instruction of the variable.
80 // AbsVar may be NULL.
81 DbgVariable(DIVariable V, DbgVariable *AV, DwarfDebug *DD)
82 : Var(V), TheDIE(nullptr), DotDebugLocOffset(~0U), AbsVar(AV),
83 MInsn(nullptr), FrameIndex(~0), DD(DD) {}
86 DIVariable getVariable() const { return Var; }
87 void setDIE(DIE &D) { TheDIE = &D; }
88 DIE *getDIE() const { return TheDIE; }
89 void setDotDebugLocOffset(unsigned O) { DotDebugLocOffset = O; }
90 unsigned getDotDebugLocOffset() const { return DotDebugLocOffset; }
91 StringRef getName() const { return Var.getName(); }
92 DbgVariable *getAbstractVariable() const { return AbsVar; }
93 const MachineInstr *getMInsn() const { return MInsn; }
94 void setMInsn(const MachineInstr *M) { MInsn = M; }
95 int getFrameIndex() const { return FrameIndex; }
96 void setFrameIndex(int FI) { FrameIndex = FI; }
97 // Translate tag to proper Dwarf tag.
98 dwarf::Tag getTag() const {
99 if (Var.getTag() == dwarf::DW_TAG_arg_variable)
100 return dwarf::DW_TAG_formal_parameter;
102 return dwarf::DW_TAG_variable;
104 /// \brief Return true if DbgVariable is artificial.
105 bool isArtificial() const {
106 if (Var.isArtificial())
108 if (getType().isArtificial())
113 bool isObjectPointer() const {
114 if (Var.isObjectPointer())
116 if (getType().isObjectPointer())
121 bool variableHasComplexAddress() const {
122 assert(Var.isVariable() && "Invalid complex DbgVariable!");
123 return Var.hasComplexAddress();
125 bool isBlockByrefVariable() const;
126 unsigned getNumAddrElements() const {
127 assert(Var.isVariable() && "Invalid complex DbgVariable!");
128 return Var.getNumAddrElements();
130 uint64_t getAddrElement(unsigned i) const { return Var.getAddrElement(i); }
131 DIType getType() const;
134 /// resolve - Look in the DwarfDebug map for the MDNode that
135 /// corresponds to the reference.
136 template <typename T> T resolve(DIRef<T> Ref) const;
140 /// \brief Helper used to pair up a symbol and its DWARF compile unit.
142 SymbolCU(DwarfCompileUnit *CU, const MCSymbol *Sym) : Sym(Sym), CU(CU) {}
144 DwarfCompileUnit *CU;
147 /// \brief Collects and handles dwarf debug information.
148 class DwarfDebug : public AsmPrinterHandler {
149 // Target of Dwarf emission.
152 // Collected machine module information.
153 MachineModuleInfo *MMI;
155 // All DIEValues are allocated through this allocator.
156 BumpPtrAllocator DIEValueAllocator;
158 // Handle to the compile unit used for the inline extension handling,
159 // this is just so that the DIEValue allocator has a place to store
160 // the particular elements.
161 // FIXME: Store these off of DwarfDebug instead?
162 DwarfCompileUnit *FirstCU;
164 // Maps MDNode with its corresponding DwarfCompileUnit.
165 MapVector<const MDNode *, DwarfCompileUnit *> CUMap;
167 // Maps subprogram MDNode with its corresponding DwarfCompileUnit.
168 DenseMap<const MDNode *, DwarfCompileUnit *> SPMap;
170 // Maps a CU DIE with its corresponding DwarfCompileUnit.
171 DenseMap<const DIE *, DwarfCompileUnit *> CUDieMap;
173 /// Maps MDNodes for type system with the corresponding DIEs. These DIEs can
174 /// be shared across CUs, that is why we keep the map here instead
175 /// of in DwarfCompileUnit.
176 DenseMap<const MDNode *, DIE *> MDTypeNodeToDieMap;
178 // List of all labels used in aranges generation.
179 std::vector<SymbolCU> ArangeLabels;
181 // Size of each symbol emitted (for those symbols that have a specific size).
182 DenseMap<const MCSymbol *, uint64_t> SymSize;
184 // Provides a unique id per text section.
185 typedef DenseMap<const MCSection *, SmallVector<SymbolCU, 8> > SectionMapType;
186 SectionMapType SectionMap;
188 // List of arguments for current function.
189 SmallVector<DbgVariable *, 8> CurrentFnArguments;
191 LexicalScopes LScopes;
193 // Collection of abstract subprogram DIEs.
194 DenseMap<const MDNode *, DIE *> AbstractSPDies;
196 // Collection of dbg variables of a scope.
197 typedef DenseMap<LexicalScope *, SmallVector<DbgVariable *, 8> >
199 ScopeVariablesMap ScopeVariables;
201 // Collection of abstract variables.
202 DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables;
204 // Collection of DebugLocEntry. Stored in a linked list so that DIELocLists
205 // can refer to them in spite of insertions into this list.
206 SmallVector<DebugLocList, 4> DotDebugLocEntries;
208 // Collection of subprogram DIEs that are marked (at the end of the module)
210 SmallPtrSet<DIE *, 4> InlinedSubprogramDIEs;
212 // This is a collection of subprogram MDNodes that are processed to
214 SmallPtrSet<const MDNode *, 16> ProcessedSPNodes;
216 // Maps instruction with label emitted before instruction.
217 DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn;
219 // Maps instruction with label emitted after instruction.
220 DenseMap<const MachineInstr *, MCSymbol *> LabelsAfterInsn;
222 // History of DBG_VALUE and clobber instructions for each user variable.
223 // Variables are listed in order of appearance.
224 DbgValueHistoryMap DbgValues;
226 // Previous instruction's location information. This is used to determine
227 // label location to indicate scope boundries in dwarf debug info.
228 DebugLoc PrevInstLoc;
231 // This location indicates end of function prologue and beginning of function
233 DebugLoc PrologEndLoc;
235 // If nonnull, stores the current machine function we're processing.
236 const MachineFunction *CurFn;
238 // If nonnull, stores the current machine instruction we're processing.
239 const MachineInstr *CurMI;
241 // If nonnull, stores the section that the previous function was allocated to
243 const MCSection *PrevSection;
245 // If nonnull, stores the CU in which the previous subprogram was contained.
246 const DwarfCompileUnit *PrevCU;
248 // Section Symbols: these are assembler temporary labels that are emitted at
249 // the beginning of each supported dwarf section. These are used to form
250 // section offsets and are created by EmitSectionLabels.
251 MCSymbol *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
252 MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
253 MCSymbol *DwarfDebugLocSectionSym, *DwarfLineSectionSym, *DwarfAddrSectionSym;
254 MCSymbol *FunctionBeginSym, *FunctionEndSym;
255 MCSymbol *DwarfInfoDWOSectionSym, *DwarfAbbrevDWOSectionSym;
256 MCSymbol *DwarfTypesDWOSectionSym;
257 MCSymbol *DwarfStrDWOSectionSym;
258 MCSymbol *DwarfGnuPubNamesSectionSym, *DwarfGnuPubTypesSectionSym;
260 // As an optimization, there is no need to emit an entry in the directory
261 // table for the same directory as DW_AT_comp_dir.
262 StringRef CompilationDir;
264 // Counter for assigning globally unique IDs for ranges.
265 unsigned GlobalRangeCount;
267 // Holder for the file specific debug information.
268 DwarfFile InfoHolder;
270 // Holders for the various debug information flags that we might need to
271 // have exposed. See accessor functions below for description.
273 // Holder for imported entities.
274 typedef SmallVector<std::pair<const MDNode *, const MDNode *>, 32>
276 ImportedEntityMap ScopesWithImportedEntities;
278 // Map from MDNodes for user-defined types to the type units that describe
280 DenseMap<const MDNode *, const DwarfTypeUnit *> DwarfTypeUnits;
282 SmallVector<std::pair<std::unique_ptr<DwarfTypeUnit>, DICompositeType>, 1> TypeUnitsUnderConstruction;
284 // Whether to emit the pubnames/pubtypes sections.
285 bool HasDwarfPubSections;
287 // Whether or not to use AT_ranges for compilation units.
290 // Whether we emitted a function into a section other than the default
292 bool UsedNonDefaultText;
294 // Version of dwarf we're emitting.
295 unsigned DwarfVersion;
297 // Maps from a type identifier to the actual MDNode.
298 DITypeIdentifierMap TypeIdentifierMap;
300 // DWARF5 Experimental Options
301 bool HasDwarfAccelTables;
304 // Separated Dwarf Variables
305 // In general these will all be for bits that are left in the
306 // original object file, rather than things that are meant
307 // to be in the .dwo sections.
309 // Holder for the skeleton information.
310 DwarfFile SkeletonHolder;
312 /// Store file names for type units under fission in a line table header that
313 /// will be emitted into debug_line.dwo.
314 // FIXME: replace this with a map from comp_dir to table so that we can emit
315 // multiple tables during LTO each of which uses directory 0, referencing the
316 // comp_dir of all the type units that use it.
317 MCDwarfDwoLineTable SplitTypeUnitFileTable;
319 // True iff there are multiple CUs in this module.
322 AddressPool AddrPool;
324 DwarfAccelTable AccelNames;
325 DwarfAccelTable AccelObjC;
326 DwarfAccelTable AccelNamespace;
327 DwarfAccelTable AccelTypes;
329 MCDwarfDwoLineTable *getDwoLineTable(const DwarfCompileUnit &);
331 void addScopeVariable(LexicalScope *LS, DbgVariable *Var);
333 const SmallVectorImpl<std::unique_ptr<DwarfUnit>> &getUnits() {
334 return InfoHolder.getUnits();
337 /// \brief Find abstract variable associated with Var.
338 DbgVariable *findAbstractVariable(DIVariable &Var, DebugLoc Loc);
339 DbgVariable *findAbstractVariable(DIVariable &Var, const MDNode *Scope);
341 /// \brief Find DIE for the given subprogram and attach appropriate
342 /// DW_AT_low_pc and DW_AT_high_pc attributes. If there are global
343 /// variables in this scope then create and insert DIEs for these
345 DIE &updateSubprogramScopeDIE(DwarfCompileUnit &SPCU, DISubprogram SP);
347 /// \brief A helper function to check whether the DIE for a given Scope is
348 /// going to be null.
349 bool isLexicalScopeDIENull(LexicalScope *Scope);
351 /// \brief A helper function to construct a RangeSpanList for a given
353 void addScopeRangeList(DwarfCompileUnit &TheCU, DIE &ScopeDIE,
354 const SmallVectorImpl<InsnRange> &Range);
356 /// \brief Construct new DW_TAG_lexical_block for this scope and
357 /// attach DW_AT_low_pc/DW_AT_high_pc labels.
358 std::unique_ptr<DIE> constructLexicalScopeDIE(DwarfCompileUnit &TheCU,
359 LexicalScope *Scope);
361 /// \brief This scope represents inlined body of a function. Construct
362 /// DIE to represent this concrete inlined copy of the function.
363 std::unique_ptr<DIE> constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
364 LexicalScope *Scope);
366 /// \brief Construct a DIE for this scope.
367 std::unique_ptr<DIE> constructScopeDIE(DwarfCompileUnit &TheCU,
368 LexicalScope *Scope);
369 void createAndAddScopeChildren(DwarfCompileUnit &TheCU, LexicalScope *Scope,
371 /// \brief Construct a DIE for this abstract scope.
372 void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
373 LexicalScope *Scope);
374 /// \brief Construct a DIE for this subprogram scope.
375 DIE &constructSubprogramScopeDIE(DwarfCompileUnit &TheCU,
376 LexicalScope *Scope);
377 /// A helper function to create children of a Scope DIE.
378 DIE *createScopeChildrenDIE(DwarfCompileUnit &TheCU, LexicalScope *Scope,
379 SmallVectorImpl<std::unique_ptr<DIE>> &Children);
381 /// \brief Emit initial Dwarf sections with a label at the start of each one.
382 void emitSectionLabels();
384 /// \brief Compute the size and offset of a DIE given an incoming Offset.
385 unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
387 /// \brief Compute the size and offset of all the DIEs.
388 void computeSizeAndOffsets();
390 /// \brief Collect info for variables that were optimized out.
391 void collectDeadVariables();
393 /// \brief Finish off debug information after all functions have been
395 void finalizeModuleInfo();
397 /// \brief Emit labels to close any remaining sections that have been left
401 /// \brief Emit the debug info section.
402 void emitDebugInfo();
404 /// \brief Emit the abbreviation section.
405 void emitAbbreviations();
407 /// \brief Emit the last address of the section and the end of
409 void emitEndOfLineMatrix(unsigned SectionEnd);
411 /// \brief Emit visible names into a hashed accelerator table section.
412 void emitAccelNames();
414 /// \brief Emit objective C classes and categories into a hashed
415 /// accelerator table section.
416 void emitAccelObjC();
418 /// \brief Emit namespace dies into a hashed accelerator table.
419 void emitAccelNamespaces();
421 /// \brief Emit type dies into a hashed accelerator table.
422 void emitAccelTypes();
424 /// \brief Emit visible names into a debug pubnames section.
425 /// \param GnuStyle determines whether or not we want to emit
426 /// additional information into the table ala newer gcc for gdb
428 void emitDebugPubNames(bool GnuStyle = false);
430 /// \brief Emit visible types into a debug pubtypes section.
431 /// \param GnuStyle determines whether or not we want to emit
432 /// additional information into the table ala newer gcc for gdb
434 void emitDebugPubTypes(bool GnuStyle = false);
437 emitDebugPubSection(bool GnuStyle, const MCSection *PSec, StringRef Name,
438 const StringMap<const DIE *> &(DwarfUnit::*Accessor)()
441 /// \brief Emit visible names into a debug str section.
444 /// \brief Emit visible names into a debug loc section.
447 /// \brief Emit visible names into a debug loc dwo section.
448 void emitDebugLocDWO();
450 /// \brief Emit visible names into a debug aranges section.
451 void emitDebugARanges();
453 /// \brief Emit visible names into a debug ranges section.
454 void emitDebugRanges();
456 /// \brief Emit inline info using custom format.
457 void emitDebugInlineInfo();
459 /// DWARF 5 Experimental Split Dwarf Emitters
461 /// \brief Initialize common features of skeleton units.
462 void initSkeletonUnit(const DwarfUnit &U, DIE &Die,
463 std::unique_ptr<DwarfUnit> NewU);
465 /// \brief Construct the split debug info compile unit for the debug info
467 DwarfCompileUnit &constructSkeletonCU(const DwarfCompileUnit &CU);
469 /// \brief Construct the split debug info compile unit for the debug info
471 DwarfTypeUnit &constructSkeletonTU(DwarfTypeUnit &TU);
473 /// \brief Emit the debug info dwo section.
474 void emitDebugInfoDWO();
476 /// \brief Emit the debug abbrev dwo section.
477 void emitDebugAbbrevDWO();
479 /// \brief Emit the debug line dwo section.
480 void emitDebugLineDWO();
482 /// \brief Emit the debug str dwo section.
483 void emitDebugStrDWO();
485 /// Flags to let the linker know we have emitted new style pubnames. Only
486 /// emit it here if we don't have a skeleton CU for split dwarf.
487 void addGnuPubAttributes(DwarfUnit &U, DIE &D) const;
489 /// \brief Create new DwarfCompileUnit for the given metadata node with tag
490 /// DW_TAG_compile_unit.
491 DwarfCompileUnit &constructDwarfCompileUnit(DICompileUnit DIUnit);
493 /// \brief Construct subprogram DIE.
494 void constructSubprogramDIE(DwarfCompileUnit &TheCU, const MDNode *N);
496 /// \brief Construct imported_module or imported_declaration DIE.
497 void constructImportedEntityDIE(DwarfCompileUnit &TheCU, const MDNode *N);
499 /// \brief Construct import_module DIE.
500 void constructImportedEntityDIE(DwarfCompileUnit &TheCU, const MDNode *N,
503 /// \brief Construct import_module DIE.
504 void constructImportedEntityDIE(DwarfCompileUnit &TheCU,
505 const DIImportedEntity &Module, DIE &Context);
507 /// \brief Register a source line with debug info. Returns the unique
508 /// label that was emitted and which provides correspondence to the
509 /// source line list.
510 void recordSourceLine(unsigned Line, unsigned Col, const MDNode *Scope,
513 /// \brief Indentify instructions that are marking the beginning of or
514 /// ending of a scope.
515 void identifyScopeMarkers();
517 /// \brief If Var is an current function argument that add it in
518 /// CurrentFnArguments list.
519 bool addCurrentFnArgument(DbgVariable *Var, LexicalScope *Scope);
521 /// \brief Populate LexicalScope entries with variables' info.
522 void collectVariableInfo(SmallPtrSet<const MDNode *, 16> &ProcessedVars);
524 /// \brief Collect variable information from the side table maintained
526 void collectVariableInfoFromMMITable(SmallPtrSet<const MDNode *, 16> &P);
528 /// \brief Ensure that a label will be emitted before MI.
529 void requestLabelBeforeInsn(const MachineInstr *MI) {
530 LabelsBeforeInsn.insert(std::make_pair(MI, nullptr));
533 /// \brief Return Label preceding the instruction.
534 MCSymbol *getLabelBeforeInsn(const MachineInstr *MI);
536 /// \brief Ensure that a label will be emitted after MI.
537 void requestLabelAfterInsn(const MachineInstr *MI) {
538 LabelsAfterInsn.insert(std::make_pair(MI, nullptr));
541 /// \brief Return Label immediately following the instruction.
542 MCSymbol *getLabelAfterInsn(const MachineInstr *MI);
544 void attachRangesOrLowHighPC(DwarfCompileUnit &Unit, DIE &D,
545 const SmallVectorImpl<InsnRange> &Ranges);
546 void attachLowHighPC(DwarfCompileUnit &Unit, DIE &D, MCSymbol *Begin,
550 //===--------------------------------------------------------------------===//
551 // Main entry points.
553 DwarfDebug(AsmPrinter *A, Module *M);
555 ~DwarfDebug() override;
557 void insertDIE(const MDNode *TypeMD, DIE *Die) {
558 MDTypeNodeToDieMap.insert(std::make_pair(TypeMD, Die));
560 DIE *getDIE(const MDNode *TypeMD) {
561 return MDTypeNodeToDieMap.lookup(TypeMD);
564 /// \brief Emit all Dwarf sections that should come prior to the
568 /// \brief Emit all Dwarf sections that should come after the content.
569 void endModule() override;
571 /// \brief Gather pre-function debug information.
572 void beginFunction(const MachineFunction *MF) override;
574 /// \brief Gather and emit post-function debug information.
575 void endFunction(const MachineFunction *MF) override;
577 /// \brief Process beginning of an instruction.
578 void beginInstruction(const MachineInstr *MI) override;
580 /// \brief Process end of an instruction.
581 void endInstruction() override;
583 /// \brief Add a DIE to the set of types that we're going to pull into
585 void addDwarfTypeUnitType(DwarfCompileUnit &CU, StringRef Identifier,
586 DIE &Die, DICompositeType CTy);
588 /// \brief Add a label so that arange data can be generated for it.
589 void addArangeLabel(SymbolCU SCU) { ArangeLabels.push_back(SCU); }
591 /// \brief For symbols that have a size designated (e.g. common symbols),
592 /// this tracks that size.
593 void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {
597 /// \brief Recursively Emits a debug information entry.
598 void emitDIE(DIE &Die);
600 // Experimental DWARF5 features.
602 /// \brief Returns whether or not to emit tables that dwarf consumers can
603 /// use to accelerate lookup.
604 bool useDwarfAccelTables() const { return HasDwarfAccelTables; }
606 /// \brief Returns whether or not to change the current debug info for the
607 /// split dwarf proposal support.
608 bool useSplitDwarf() const { return HasSplitDwarf; }
610 /// Returns the Dwarf Version.
611 unsigned getDwarfVersion() const { return DwarfVersion; }
613 /// Returns the section symbol for the .debug_loc section.
614 MCSymbol *getDebugLocSym() const { return DwarfDebugLocSectionSym; }
616 /// Returns the previous section that was emitted into.
617 const MCSection *getPrevSection() const { return PrevSection; }
619 /// Returns the previous CU that was being updated
620 const DwarfCompileUnit *getPrevCU() const { return PrevCU; }
622 /// Returns the entries for the .debug_loc section.
623 const SmallVectorImpl<DebugLocList> &
624 getDebugLocEntries() const {
625 return DotDebugLocEntries;
628 /// \brief Emit an entry for the debug loc section. This can be used to
629 /// handle an entry that's going to be emitted into the debug loc section.
630 void emitDebugLocEntry(ByteStreamer &Streamer, const DebugLocEntry &Entry);
632 /// Emit the location for a debug loc entry, including the size header.
633 void emitDebugLocEntryLocation(const DebugLocEntry &Entry);
635 /// Find the MDNode for the given reference.
636 template <typename T> T resolve(DIRef<T> Ref) const {
637 return Ref.resolve(TypeIdentifierMap);
640 /// \brief Return the TypeIdentifierMap.
641 const DITypeIdentifierMap &getTypeIdentifierMap() const {
642 return TypeIdentifierMap;
645 /// Find the DwarfCompileUnit for the given CU Die.
646 DwarfCompileUnit *lookupUnit(const DIE *CU) const {
647 return CUDieMap.lookup(CU);
649 /// isSubprogramContext - Return true if Context is either a subprogram
650 /// or another context nested inside a subprogram.
651 bool isSubprogramContext(const MDNode *Context);
653 void addSubprogramNames(DISubprogram SP, DIE &Die);
655 AddressPool &getAddressPool() { return AddrPool; }
657 void addAccelName(StringRef Name, const DIE &Die);
659 void addAccelObjC(StringRef Name, const DIE &Die);
661 void addAccelNamespace(StringRef Name, const DIE &Die);
663 void addAccelType(StringRef Name, const DIE &Die, char Flags);
665 } // End of namespace llvm