Reorganize some member variables and update a comment.
authorEric Christopher <echristo@gmail.com>
Sat, 5 Oct 2013 00:39:55 +0000 (00:39 +0000)
committerEric Christopher <echristo@gmail.com>
Sat, 5 Oct 2013 00:39:55 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.h

index 1c67f6b249e9085318c06486d9c0c43a438cccaf..b9ccf95bb122b9cc3ce7c74b5f20faee73f90569 100644 (file)
@@ -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