summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-18 22:43:42 +0000
committerDevang Patel <dpatel@apple.com>2011-02-18 22:43:42 +0000
commita778f5c798fc78ca15f813c362cdcdcc1eb86266 (patch)
tree6985fb1ab8c5de26f937356d0be0ab4011b8548e /lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
parent0160c8a8bc1c1f3c3a65a44cb614bf03ef82a967 (diff)
downloadllvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.tar.gz
llvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.tar.bz2
llvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.tar.xz
Do not lose debug info of an inlined function argument even if the argument is only used through GEPs.
This time with a fix that avoids using invalidated DenseMap iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SDNodeDbgValue.h')
-rw-r--r--lib/CodeGen/SelectionDAG/SDNodeDbgValue.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
index e5cd23a6c9..2dcb229573 100644
--- a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
+++ b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
@@ -83,14 +83,6 @@ public:
// Returns the SDNode* for a register ref
SDNode *getSDNode() { assert (kind==SDNODE); return u.s.Node; }
- // setSDNode - If underlying SDNode is replaced by another node then
- // SelectionDAG can use this to transfer DbgValue.
- void setSDNode(SDNode *N, unsigned R) {
- assert (kind==SDNODE);
- u.s.Node = N;
- u.s.ResNo = R;
- }
-
// Returns the ResNo for a register ref
unsigned getResNo() { assert (kind==SDNODE); return u.s.ResNo; }