diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-11-09 21:02:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-11-09 21:02:30 +0000 |
| commit | ac64873403f30b201574a6811015be895c7c07f5 (patch) | |
| tree | 34d15deaa2688430086b26bff2c70d09d353ba17 /llvm | |
| parent | 0de21ea32d87632ebac4f2aa20684499652bfc39 (diff) | |
| download | bcm5719-llvm-ac64873403f30b201574a6811015be895c7c07f5.tar.gz bcm5719-llvm-ac64873403f30b201574a6811015be895c7c07f5.zip | |
Move maskNodeTypes from cpp file
llvm-svn: 4662
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Analysis/DSGraph.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/DSGraph.h b/llvm/include/llvm/Analysis/DSGraph.h index 3ec567e6655..1c7f77fd23f 100644 --- a/llvm/include/llvm/Analysis/DSGraph.h +++ b/llvm/include/llvm/Analysis/DSGraph.h @@ -109,10 +109,13 @@ public: 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 |

