projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Push memory ownership of DwarfUnits into clients of DwarfFile.
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
DwarfUnit.h
diff --git
a/lib/CodeGen/AsmPrinter/DwarfUnit.h
b/lib/CodeGen/AsmPrinter/DwarfUnit.h
index ef713f7cf017582d81b6b5b99f293e97aeaead7a..63f01e13fac10446499bfa6beba17baad09f12f1 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/
lib/CodeGen/AsmPrinter/DwarfUnit.h
@@
-163,7
+163,7
@@
public:
virtual ~DwarfUnit();
/// Set the skeleton unit associated with this unit.
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; }
/// Get the skeleton unit associated with this unit.
DwarfUnit *getSkeleton() const { return Skeleton; }