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

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 7 19:23:01 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DSNode.h updated: 1.8 -> 1.9

---
Log message:

Add flag that may be used to determine if dead nodes are used.  It's temporary


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DSNode.h
diff -u llvm/include/llvm/Analysis/DSNode.h:1.8 llvm/include/llvm/Analysis/DSNode.h:1.9
--- llvm/include/llvm/Analysis/DSNode.h:1.8	Wed Nov  6 00:20:27 2002
+++ llvm/include/llvm/Analysis/DSNode.h	Thu Nov  7 19:22:26 2002
@@ -56,6 +56,9 @@
     Incomplete  = 1 << 4,   // This node may not be complete
     Modified    = 1 << 5,   // This node is modified in this context
     Read        = 1 << 6,   // This node is read in this context
+#if 1
+    DEAD        = 1 << 7,   // This node is dead and should not be pointed to
+#endif
   };
   
   /// NodeType - A union of the above bits.  "Shadow" nodes do not add any flags
@@ -208,11 +211,11 @@
 //===----------------------------------------------------------------------===//
 // Define inline DSNodeHandle functions that depend on the definition of DSNode
 //
-
 inline void DSNodeHandle::setNode(DSNode *n) {
   if (N) N->removeReferrer(this);
   N = n;
   if (N) N->addReferrer(this);
+  assert(!N || ((N->NodeType & DSNode::DEAD) == 0));
 }
 
 inline bool DSNodeHandle::hasLink(unsigned Num) const {





More information about the llvm-commits mailing list