Push memory ownership of DwarfUnits into clients of DwarfFile.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index ef713f7cf017582d81b6b5b99f293e97aeaead7a..63f01e13fac10446499bfa6beba17baad09f12f1 100644 (file)
@@ -163,7 +163,7 @@ public:
   virtual ~DwarfUnit();
 
   /// Set the skeleton unit associated with this unit.
-  void setSkeleton(DwarfUnit *Skel) { Skeleton = Skel; }
+  void setSkeleton(DwarfUnit &Skel) { Skeleton = &Skel; }
 
   /// Get the skeleton unit associated with this unit.
   DwarfUnit *getSkeleton() const { return Skeleton; }