As Alkis pointed out to me, I forgot to commit this... :(
authorChris Lattner <sabre@nondot.org>
Sat, 7 Feb 2004 22:54:19 +0000 (22:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Feb 2004 22:54:19 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11159 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSNode.h
include/llvm/Analysis/DataStructure/DSNode.h

index 25920e26e78aaf8c2abdc46b0da20bd7e8d49731..68b69ef7351146ddc20396be87a3ef2be23479cc 100644 (file)
@@ -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!");
index 25920e26e78aaf8c2abdc46b0da20bd7e8d49731..68b69ef7351146ddc20396be87a3ef2be23479cc 100644 (file)
@@ -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!");