DwarfUnit: return by reference from createAndAddDIE
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index 96ef40d94ddc6f008367a7d69804cca49d618e76..17be320f209b3f4c8810cd4a6c4145b8b840a709 100644 (file)
@@ -432,7 +432,7 @@ public:
 
   /// Create a DIE with the given Tag, add the DIE to its parent, and
   /// call insertDIE if MD is not null.
-  DIE *createAndAddDIE(unsigned Tag, DIE &Parent,
+  DIE &createAndAddDIE(unsigned Tag, DIE &Parent,
                        DIDescriptor N = DIDescriptor());
 
   /// Compute the size of a header for this unit, not including the initial
@@ -526,7 +526,7 @@ private:
 
   /// If this is a named finished type then include it in the list of types for
   /// the accelerator tables.
-  void updateAcceleratorTables(DIScope Context, DIType Ty, const DIE *TyDIE);
+  void updateAcceleratorTables(DIScope Context, DIType Ty, const DIE &TyDIE);
 };
 
 class DwarfCompileUnit : public DwarfUnit {