diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-01-09 03:03:27 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-01-09 03:03:27 +0000 |
| commit | 7480ae6e191df66333f97885e0d38c08fffd8101 (patch) | |
| tree | 0e2f36747ba7b7f1955ade99998f1b16ff48d783 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
| parent | 439991d7e34c4792eb69f7e12fa26fd2a98f0651 (diff) | |
| download | bcm5719-llvm-7480ae6e191df66333f97885e0d38c08fffd8101.tar.gz bcm5719-llvm-7480ae6e191df66333f97885e0d38c08fffd8101.zip | |
Revert "DwarfUnit: Move the DICompileUnit Node to the DwarfCompileUnit only"
This reverts commit r198830.
Decided to go a different way with this...
llvm-svn: 198841
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index cba15fc9a82..524cdc1b59f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -65,6 +65,9 @@ protected: /// UniqueID - a numeric ID unique among all CUs in the module unsigned UniqueID; + /// Node - MDNode for the compile unit. + DICompileUnit Node; + /// Unit debug information entry. const OwningPtr<DIE> UnitDie; @@ -146,8 +149,8 @@ protected: /// Skeleton unit associated with this unit. DwarfUnit *Skeleton; - DwarfUnit(unsigned UID, DIE *D, AsmPrinter *A, DwarfDebug *DW, - DwarfFile *DWU); + DwarfUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, + DwarfDebug *DW, DwarfFile *DWU); public: virtual ~DwarfUnit(); @@ -216,6 +219,7 @@ public: // Accessors. unsigned getUniqueID() const { return UniqueID; } virtual uint16_t getLanguage() const = 0; + DICompileUnit getNode() const { return Node; } DIE *getUnitDie() const { return UnitDie.get(); } const StringMap<const DIE *> &getGlobalNames() const { return GlobalNames; } const StringMap<const DIE *> &getGlobalTypes() const { return GlobalTypes; } @@ -530,13 +534,9 @@ private: }; class DwarfCompileUnit : public DwarfUnit { - /// Node - MDNode for the compile unit. - DICompileUnit Node; - public: DwarfCompileUnit(unsigned UID, DIE *D, DICompileUnit Node, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU); - DICompileUnit getNode() const { return Node; } virtual ~DwarfCompileUnit() LLVM_OVERRIDE; /// createGlobalVariableDIE - create global variable DIE. |

