diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-11-21 01:29:16 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-11-21 01:29:16 +0000 |
| commit | a16725b6b65ddad7c29830814bceafbf42731fbb (patch) | |
| tree | 9b1eceaf18a6588d06296132c025c0c71bd77ee4 /llvm/lib/CodeGen/AsmPrinter | |
| parent | 4affe8ce3ed6d0996133989de937bf1ddb275991 (diff) | |
| download | bcm5719-llvm-a16725b6b65ddad7c29830814bceafbf42731fbb.tar.gz bcm5719-llvm-a16725b6b65ddad7c29830814bceafbf42731fbb.zip | |
Move DebugInfoOffset member near the other data member it helps describe.
llvm-svn: 195299
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index b636a5dab64..a63968c4412 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -40,16 +40,16 @@ static cl::opt<bool> GenerateTypeUnits("generate-type-units", cl::Hidden, /// CompileUnit - Compile unit constructor. CompileUnit::CompileUnit(unsigned UID, DIE *D, DICompileUnit Node, AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU) - : UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D), Asm(A), - DD(DW), DU(DWU), IndexTyDie(0), DebugInfoOffset(0) { + : UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D), + DebugInfoOffset(0), Asm(A), DD(DW), DU(DWU), IndexTyDie(0) { DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1); insertDIE(Node, D); } CompileUnit::CompileUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A, DwarfDebug *DD, DwarfUnits *DU) - : UniqueID(UID), Node(NULL), Language(Language), CUDie(D), Asm(A), DD(DD), - DU(DU), IndexTyDie(0), DebugInfoOffset(0) { + : UniqueID(UID), Node(NULL), Language(Language), CUDie(D), + DebugInfoOffset(0), Asm(A), DD(DD), DU(DU), IndexTyDie(0) { DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1); } diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 6a4508107dc..23d3afc0242 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -47,6 +47,9 @@ class CompileUnit { /// CUDie - Compile unit debug information entry. const OwningPtr<DIE> CUDie; + /// Offset of the CUDie from beginning of debug info section. + unsigned DebugInfoOffset; + /// Asm - Target of Dwarf emission. AsmPrinter *Asm; @@ -97,9 +100,6 @@ class CompileUnit { // DIEIntegerOne - A preallocated DIEValue because 1 is used frequently. DIEInteger *DIEIntegerOne; - /// Offset of the CUDie from beginning of debug info section. - unsigned DebugInfoOffset; - public: CompileUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU); |

