diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-01-09 01:20:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-01-09 01:20:14 +0000 |
commit | 08badfd2bab2dff6568af33fc3c199a617c92c1e (patch) | |
tree | e0dc07a355285202aeb28e19ef36da6410ca8332 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | 51a6b87ca39e1be6b1f7958ed5f00bbb81d97eb8 (diff) | |
download | bcm5719-llvm-08badfd2bab2dff6568af33fc3c199a617c92c1e.tar.gz bcm5719-llvm-08badfd2bab2dff6568af33fc3c199a617c92c1e.zip |
DwarfUnit: Move the DICompileUnit Node to the DwarfCompileUnit only
It's unused in DwarfTypeUnit, as is expected.
llvm-svn: 198830
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 524cdc1b59f..cba15fc9a82 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -65,9 +65,6 @@ 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; @@ -149,8 +146,8 @@ protected: /// Skeleton unit associated with this unit. DwarfUnit *Skeleton; - DwarfUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A, - DwarfDebug *DW, DwarfFile *DWU); + DwarfUnit(unsigned UID, DIE *D, AsmPrinter *A, DwarfDebug *DW, + DwarfFile *DWU); public: virtual ~DwarfUnit(); @@ -219,7 +216,6 @@ 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; } @@ -534,9 +530,13 @@ 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. |