diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-18 00:35:36 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-18 00:35:36 +0000 |
commit | 7c60f20e497c10e506a44317aa98ba23f8b04b54 (patch) | |
tree | e7afd3feb1607962af442912546b7ae6935c5621 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | 9a5b990f27455374007c2288f12eeef945fb84f7 (diff) | |
download | bcm5719-llvm-7c60f20e497c10e506a44317aa98ba23f8b04b54.tar.gz bcm5719-llvm-7c60f20e497c10e506a44317aa98ba23f8b04b54.zip |
DebugInfo: Delete DIDescriptor (but not its subclasses)
Delete `DIDescriptor` and update the remaining users. I'll follow-up by
deleting subclasses in manageable groups (top-down).
llvm-svn: 235248
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index b354255d709..8b43e868784 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -106,7 +106,7 @@ protected: /// ContainingTypeMap - This map is used to keep track of subprogram DIEs that /// need DW_AT_containing_type attribute. This attribute points to a DIE that /// corresponds to the MDNode mapped with the subprogram DIE. - DenseMap<DIE *, const MDNode *> ContainingTypeMap; + DenseMap<DIE *, const DebugNode *> ContainingTypeMap; // DIEValueAllocator - All DIEValues are allocated through this allocator. BumpPtrAllocator DIEValueAllocator; @@ -169,7 +169,7 @@ public: /// when the MDNode can be part of the type system, since DIEs for /// the type system can be shared across CUs and the mappings are /// kept in DwarfDebug. - DIE *getDIE(DIDescriptor D) const; + DIE *getDIE(const DebugNode *D) const; /// getDIELoc - Returns a fresh newly allocated DIELoc. DIELoc *getDIELoc() { return new (DIEValueAllocator) DIELoc(); } @@ -178,7 +178,7 @@ public: /// when the MDNode can be part of the type system, since DIEs for /// the type system can be shared across CUs and the mappings are /// kept in DwarfDebug. - void insertDIE(DIDescriptor Desc, DIE *D); + void insertDIE(const DebugNode *Desc, DIE *D); /// addFlag - Add a flag that is true to the DIE. void addFlag(DIE &Die, dwarf::Attribute Attribute); @@ -313,8 +313,7 @@ public: /// Create a DIE with the given Tag, add the DIE to its parent, and /// call insertDIE if MD is not null. - DIE &createAndAddDIE(unsigned Tag, DIE &Parent, - DIDescriptor N = DIDescriptor()); + DIE &createAndAddDIE(unsigned Tag, DIE &Parent, const DebugNode *N = nullptr); /// Compute the size of a header for this unit, not including the initial /// length field. |