From: Chris Lattner Date: Sat, 7 Feb 2004 22:54:19 +0000 (+0000) Subject: As Alkis pointed out to me, I forgot to commit this... :( X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d1d2be3c168ff87977254798d1ef1fea0d7b3834;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h index 25920e26e78..68b69ef7351 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 25920e26e78..68b69ef7351 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!");