summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-25 19:33:43 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-25 19:33:43 +0000
commit172515f0be61f91c3a67206c6627c5e2572bdb26 (patch)
treeb91527437838dacb2a840964ac5f7b76d8c7f739 /lib/CodeGen/AsmPrinter/DIE.h
parentd48f5efa9db174650d87f5dedc03810998f43960 (diff)
downloadllvm-172515f0be61f91c3a67206c6627c5e2572bdb26.tar.gz
llvm-172515f0be61f91c3a67206c6627c5e2572bdb26.tar.bz2
llvm-172515f0be61f91c3a67206c6627c5e2572bdb26.tar.xz
DIEEntry: Refer to the specified DIE via reference rather than pointer.
Makes some more cases (the unit tests, specifically), lexically compatible with a change to unique_ptr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h
index 7d7fd743c4..a2841fe1ae 100644
--- a/lib/CodeGen/AsmPrinter/DIE.h
+++ b/lib/CodeGen/AsmPrinter/DIE.h
@@ -405,14 +405,13 @@ public:
/// this class can also be used as a proxy for a debug information entry not
/// yet defined (ie. types.)
class DIEEntry : public DIEValue {
- DIE *const Entry;
+ DIE &Entry;
public:
- explicit DIEEntry(DIE *E) : DIEValue(isEntry), Entry(E) {
- assert(E && "Cannot construct a DIEEntry with a null DIE");
+ explicit DIEEntry(DIE &E) : DIEValue(isEntry), Entry(E) {
}
- DIE *getEntry() const { return Entry; }
+ DIE &getEntry() const { return Entry; }
/// EmitValue - Emit debug information entry offset.
///