diff options
author | Devang Patel <dpatel@apple.com> | 2011-01-25 23:27:42 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-01-25 23:27:42 +0000 |
commit | a2e868d34ccfed46310e98338ded6a74b2b01308 (patch) | |
tree | 441542dd6fda57f855b743a90bb5276988a8ef25 /include/llvm/CodeGen/SelectionDAG.h | |
parent | e13359732addeaa2682aaf96e293d6d8c4f8b36c (diff) |
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.h | 7 |
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. |