diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-05 00:39:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-05 00:39:55 +0000 |
commit | af76b1601cc1568aa7c672bca6383760b56d2ac4 (patch) | |
tree | 9f0ade2fa27c4a544cfb0a5844f7eb49f33ea3a7 | |
parent | 72dd4cd1dda543e76b5dfc6cba50d7c4e085e87c (diff) | |
download | llvm-af76b1601cc1568aa7c672bca6383760b56d2ac4.tar.gz llvm-af76b1601cc1568aa7c672bca6383760b56d2ac4.tar.bz2 llvm-af76b1601cc1568aa7c672bca6383760b56d2ac4.tar.xz |
Reorganize some member variables and update a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192017 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 1c67f6b249..b9ccf95bb1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -86,6 +86,12 @@ class CompileUnit { /// corresponds to the MDNode mapped with the subprogram DIE. DenseMap<DIE *, const MDNode *> ContainingTypeMap; + // DIEValueAllocator - All DIEValues are allocated through this allocator. + BumpPtrAllocator DIEValueAllocator; + + // DIEIntegerOne - A preallocated DIEValue because 1 is used frequently. + DIEInteger *DIEIntegerOne; + public: CompileUnit(unsigned UID, DIE *D, const MDNode *N, AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU); @@ -357,12 +363,6 @@ private: template <typename T> T resolve(DIRef<T> Ref) const { return DD->resolve(Ref); } - -private: - - // DIEValueAllocator - All DIEValues are allocated through this allocator. - BumpPtrAllocator DIEValueAllocator; - DIEInteger *DIEIntegerOne; }; } // end llvm namespace |