[llvm-commits] CVS: llvm/include/llvm/Analysis/DSNode.h

Chris Lattner lattner at cs.uiuc.edu
Sat Feb 7 17:03:45 PST 2004


Changes in directory llvm/include/llvm/Analysis:

DSNode.h updated: 1.36 -> 1.37

---
Log message:

Actually USE isForwarding method


---
Diffs of the changes:  (+5 -5)

Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.36 llvm/include/llvm/Analysis/DSNode.h:1.37
--- llvm/include/llvm/Analysis/DSNode.h:1.36	Sat Feb  7 16:54:19 2004
+++ llvm/include/llvm/Analysis/DSNode.h	Sat Feb  7 17:02:32 2004
@@ -157,7 +157,7 @@
   bool isForwarding() const { return !ForwardNH.isNull(); }
 
   void stopForwarding() {
-    assert(!ForwardNH.isNull() &&
+    assert(isForwarding() &&
            "Node isn't forwarding, cannot stopForwarding!");
     ForwardNH.setNode(0);
   }
@@ -313,7 +313,7 @@
 
   void dropAllReferences() {
     Links.clear();
-    if (!ForwardNH.isNull())
+    if (isForwarding())
       ForwardNH.setNode(0);
   }
 
@@ -340,8 +340,8 @@
 //
 inline DSNode *DSNodeHandle::getNode() const {
   assert((!N || Offset < N->Size || (N->Size == 0 && Offset == 0) ||
-          !N->ForwardNH.isNull()) && "Node handle offset out of range!");
-  if (N == 0 || N->ForwardNH.isNull())
+          N->isForwarding()) && "Node handle offset out of range!");
+  if (N == 0 || !N->isForwarding())
     return N;
 
   return HandleForwarding();
@@ -361,7 +361,7 @@
   }
   assert(!N || ((N->NodeType & DSNode::DEAD) == 0));
   assert((!N || Offset < N->Size || (N->Size == 0 && Offset == 0) ||
-          !N->ForwardNH.isNull()) && "Node handle offset out of range!");
+          N->isForwarding()) && "Node handle offset out of range!");
 }
 
 inline bool DSNodeHandle::hasLink(unsigned Num) const {





More information about the llvm-commits mailing list