summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-02-18 04:58:10 +0000
committerCameron Zwarich <zwarich@apple.com>2011-02-18 04:58:10 +0000
commit0a1a36dc46e85f83cf778c9fd695ff9286f070c1 (patch)
tree81f9b313f4e48eb027a991190c2e2666cc6dfbb2 /llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
parent1a924e770ad01b524d7477473a1ded63c90242aa (diff)
downloadbcm5719-llvm-0a1a36dc46e85f83cf778c9fd695ff9286f070c1.tar.gz
bcm5719-llvm-0a1a36dc46e85f83cf778c9fd695ff9286f070c1.zip
Roll out r125794 to help diagnose the llvm-gcc-i386-linux-selfhost failure.
llvm-svn: 125830
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
index 2dcb2295732..e5cd23a6c9f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
+++ b/llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
@@ -83,6 +83,14 @@ 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; }
OpenPOWER on IntegriCloud