Reorder fission variables.
authorEric Christopher <echristo@gmail.com>
Mon, 10 Dec 2012 19:51:13 +0000 (19:51 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 10 Dec 2012 19:51:13 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169756 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index 945fba8dca8e1b533c286f586daf3918ac836ebb..574474c118e7581c802745b9a5ffe864999e657b 100644 (file)
@@ -153,10 +153,10 @@ DIType DbgVariable::getType() const {
 } // end llvm namespace
 
 DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
-  : Asm(A), MMI(Asm->MMI), FirstCU(0), FissionCU(0),
+  : Asm(A), MMI(Asm->MMI), FirstCU(0),
     AbbreviationsSet(InitAbbreviationsSetSize),
     SourceIdMap(DIEValueAllocator), StringPool(DIEValueAllocator),
-    PrevLabel(NULL), GlobalCUIndexCount(0) {
+    PrevLabel(NULL), GlobalCUIndexCount(0), FissionCU(0) {
   NextStringPoolNumber = 0;
 
   DwarfInfoSectionSym = DwarfAbbrevSectionSym = 0;
index 689ccca655b68381ef735c8935e60144b1d5ab17..56b9218474a9b6c5cb4a836759396cf5bd487102 100644 (file)
@@ -205,9 +205,6 @@ class DwarfDebug {
 
   CompileUnit *FirstCU;
 
-  // The CU left in the original object file for Fission debug info.
-  CompileUnit *FissionCU;
-
   // Maps MDNode with its corresponding CompileUnit.
   DenseMap <const MDNode *, CompileUnit *> CUMap;
 
@@ -322,6 +319,15 @@ class DwarfDebug {
   // DWARF5 Experimental Options
   bool HasDwarfAccelTables;
   bool HasDwarfFission;
+
+  // Fission Variables
+  // In general these will all be for bits that are left in the
+  // original object file, rather than things that are meant
+  // to be in the .dwo sections.
+
+  // The CU left in the original object file for Fission debug info.
+  CompileUnit *FissionCU;
+
 private:
 
   /// \brief Define a unique number for the abbreviation.