summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAG.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-01-25 23:27:42 +0000
committerDevang Patel <dpatel@apple.com>2011-01-25 23:27:42 +0000
commita2e868d34ccfed46310e98338ded6a74b2b01308 (patch)
tree441542dd6fda57f855b743a90bb5276988a8ef25 /include/llvm/CodeGen/SelectionDAG.h
parente13359732addeaa2682aaf96e293d6d8c4f8b36c (diff)
downloadllvm-a2e868d34ccfed46310e98338ded6a74b2b01308.tar.gz
llvm-a2e868d34ccfed46310e98338ded6a74b2b01308.tar.bz2
llvm-a2e868d34ccfed46310e98338ded6a74b2b01308.tar.xz
Provide an interface to transfer SDDbgValue from one SDNode to another.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 4f8e98b3c9..136bdd5b4d 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -100,6 +100,10 @@ public:
return DbgValMap[Node];
}
+ void removeSDDbgValues(const SDNode *Node) {
+ DbgValMap.erase(Node);
+ }
+
typedef SmallVector<SDDbgValue*,32>::iterator DbgIterator;
DbgIterator DbgBegin() { return DbgValues.begin(); }
DbgIterator DbgEnd() { return DbgValues.end(); }
@@ -901,6 +905,9 @@ public:
SmallVector<SDDbgValue*,2> &GetDbgValues(const SDNode* SD) {
return DbgInfo->getSDDbgValues(SD);
}
+
+ /// TransferDbgValues - Transfer SDDbgValues.
+ void TransferDbgValues(SDValue From, SDValue To);
/// hasDebugValues - Return true if there are any SDDbgValue nodes associated
/// with this SelectionDAG.