diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-07 22:54:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-07 22:54:19 +0000 |
commit | d1d2be3c168ff87977254798d1ef1fea0d7b3834 (patch) | |
tree | 117c826ae58089fe5b55187c54f33ee4aaa5e40f | |
parent | a5ca28cafe01a17cf46088d6ab641fc491482897 (diff) |
As Alkis pointed out to me, I forgot to commit this... :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11159 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/DSNode.h | 4 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 25920e26e7..68b69ef735 100644 --- a/include/llvm/Analysis/DSNode.h +++ b/include/llvm/Analysis/DSNode.h @@ -152,6 +152,10 @@ public: /// getForwardNode - This method returns the node that this node is forwarded /// to, if any. DSNode *getForwardNode() const { return ForwardNH.getNode(); } + + /// isForwarding - Return true if this node is forwarding to another. + bool isForwarding() const { return !ForwardNH.isNull(); } + void stopForwarding() { assert(!ForwardNH.isNull() && "Node isn't forwarding, cannot stopForwarding!"); diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 25920e26e7..68b69ef735 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -152,6 +152,10 @@ public: /// getForwardNode - This method returns the node that this node is forwarded /// to, if any. DSNode *getForwardNode() const { return ForwardNH.getNode(); } + + /// isForwarding - Return true if this node is forwarding to another. + bool isForwarding() const { return !ForwardNH.isNull(); } + void stopForwarding() { assert(!ForwardNH.isNull() && "Node isn't forwarding, cannot stopForwarding!"); |