[llvm-commits] CVS: llvm/include/llvm/Analysis/DSGraph.h
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Sat Feb  7 18:23:01 PST 2004
    
    
  
Changes in directory llvm/include/llvm/Analysis:
DSGraph.h updated: 1.71 -> 1.72
---
Log message:
Change to use iterators instead of direct access
---
Diffs of the changes:  (+2 -2)
Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.71 llvm/include/llvm/Analysis/DSGraph.h:1.72
--- llvm/include/llvm/Analysis/DSGraph.h:1.71	Sat Feb  7 17:57:08 2004
+++ llvm/include/llvm/Analysis/DSGraph.h	Sat Feb  7 18:22:41 2004
@@ -268,8 +268,8 @@
   /// is useful for clearing out markers like Incomplete.
   ///
   void maskNodeTypes(unsigned Mask) {
-    for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
-      Nodes[i]->maskNodeTypes(Mask);
+    for (node_iterator I = node_begin(), E = node_end(); I != E; ++I)
+      (*I)->maskNodeTypes(Mask);
   }
   void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); }
 
    
    
More information about the llvm-commits
mailing list