Return DIE by reference instead of pointer from DwarfUnit::getUnitDie
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index 7f485fe7399a77d07767c5bee88271bee73d2f96..96ef40d94ddc6f008367a7d69804cca49d618e76 100644 (file)
@@ -215,7 +215,7 @@ public:
   unsigned getUniqueID() const { return UniqueID; }
   uint16_t getLanguage() const { return CUNode.getLanguage(); }
   DICompileUnit getCUNode() const { return CUNode; }
-  DIE *getUnitDie() const { return UnitDie.get(); }
+  DIE &getUnitDie() const { return *UnitDie; }
   const StringMap<const DIE *> &getGlobalNames() const { return GlobalNames; }
   const StringMap<const DIE *> &getGlobalTypes() const { return GlobalTypes; }