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

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 9 15:03:06 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DSGraph.h updated: 1.35 -> 1.36

---
Log message:

Move maskNodeTypes from cpp file


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DSGraph.h
diff -u llvm/include/llvm/Analysis/DSGraph.h:1.35 llvm/include/llvm/Analysis/DSGraph.h:1.36
--- llvm/include/llvm/Analysis/DSGraph.h:1.35	Sat Nov  9 15:00:49 2002
+++ llvm/include/llvm/Analysis/DSGraph.h	Sat Nov  9 15:02:30 2002
@@ -109,10 +109,13 @@
   void dump() const;
   void writeGraphToFile(std::ostream &O, const std::string &GraphName) const;
 
-  // maskNodeTypes - Apply a mask to all of the node types in the graph.  This
-  // is useful for clearing out markers like Scalar or Incomplete.
-  //
-  void maskNodeTypes(unsigned char Mask);
+  /// maskNodeTypes - Apply a mask to all of the node types in the graph.  This
+  /// is useful for clearing out markers like Incomplete.
+  ///
+  void maskNodeTypes(unsigned char Mask) {
+    for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
+      Nodes[i]->NodeType &= Mask;
+  }
   void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); }
 
   // markIncompleteNodes - Traverse the graph, identifying nodes that may be





More information about the llvm-commits mailing list