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
This commit is contained in:
Devang Patel
2011-01-25 23:27:42 +00:00
parent e13359732a
commit a2e868d34c
3 changed files with 32 additions and 0 deletions

View File

@@ -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.