summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-22 22:39:41 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-22 22:39:41 +0000
commitf9b6a558c8cf514eaef8914e5ef0ed3bb0707868 (patch)
tree3e11edf06ac80d1bd9355d97a144bee71db19d46 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
parent3feb690f76dec261ae79fc09b3603522e91e6ed6 (diff)
downloadbcm5719-llvm-f9b6a558c8cf514eaef8914e5ef0ed3bb0707868.tar.gz
bcm5719-llvm-f9b6a558c8cf514eaef8914e5ef0ed3bb0707868.zip
Push memory ownership of DwarfUnits into clients of DwarfFile.
This prompted me to push references through most of DwarfDebug. Sorry for the churn. Honestly it's a bit silly that we're passing around units all over the place like that anyway and I think it's mostly due to the DIE attribute adding utility functions being utilities in DwarfUnit. I should have another go at moving them out of DwarfUnit... llvm-svn: 206925
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index ef713f7cf01..63f01e13fac 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -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; }
OpenPOWER on IntegriCloud