diff options
author | Eric Christopher <echristo@gmail.com> | 2013-11-21 01:14:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-11-21 01:14:00 +0000 |
commit | bd355a033eab6b9fb37f1e652892c96e9e164615 (patch) | |
tree | 89d8f6cdc60b1909a67afe463398ae200b7653e0 | |
parent | 76ef8af3581cbbb3cf34197fa16859fb4797ec67 (diff) | |
download | llvm-bd355a033eab6b9fb37f1e652892c96e9e164615.tar.gz llvm-bd355a033eab6b9fb37f1e652892c96e9e164615.tar.bz2 llvm-bd355a033eab6b9fb37f1e652892c96e9e164615.tar.xz |
Reorder language in the CompileUnit description and add a comment.
Language may only be a temporary addition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195296 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 17740259ef..b636a5dab6 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/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), CUDie(D), Asm(A), DD(DW), DU(DWU), - IndexTyDie(0), Language(Node.getLanguage()), DebugInfoOffset(0) { + : UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D), Asm(A), + DD(DW), DU(DWU), IndexTyDie(0), DebugInfoOffset(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), CUDie(D), Asm(A), DD(DD), DU(DU), - IndexTyDie(0), Language(Language), DebugInfoOffset(0) { + : UniqueID(UID), Node(NULL), Language(Language), CUDie(D), Asm(A), DD(DD), + DU(DU), IndexTyDie(0), DebugInfoOffset(0) { DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1); } diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 21153862d7..02b984ebf6 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -42,6 +42,9 @@ class CompileUnit { /// Node - MDNode for the compile unit. DICompileUnit Node; + /// Language - Language for the translation unit associated with this CU. + uint16_t Language; + /// CUDie - Compile unit debug information entry. /// const OwningPtr<DIE> CUDie; @@ -93,8 +96,6 @@ class CompileUnit { // DIEIntegerOne - A preallocated DIEValue because 1 is used frequently. DIEInteger *DIEIntegerOne; - uint16_t Language; - public: CompileUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU); |