From d1d2be3c168ff87977254798d1ef1fea0d7b3834 Mon Sep 17 00:00:00 2001
From: Chris Lattner <sabre@nondot.org>
Date: Sat, 7 Feb 2004 22:54:19 +0000
Subject: [PATCH] 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
---
 include/llvm/Analysis/DSNode.h               | 4 ++++
 include/llvm/Analysis/DataStructure/DSNode.h | 4 ++++
 2 files changed, 8 insertions(+)

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!");