diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-16 22:42:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-16 22:42:01 +0000 |
commit | df6001380a809c07a68a9e0da23926b104a8a089 (patch) | |
tree | ff4e2430c3832b50a041c96467b5a5f4bffdd209 /include/llvm/Analysis/DataStructure/DSGraph.h | |
parent | 5e5d2203cdd5c13a6f059a3d5b6e5c8d315fd637 (diff) |
remove use of compat_iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSGraph.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index 9b04e505b6..9da47af5fe 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -204,9 +204,13 @@ public: /// cause the node to be removed from this list. This means that if you are /// iterating over nodes and doing something that could cause _any_ node to /// merge, your node_iterators into this graph can be invalidated. - typedef NodeListTy::compat_iterator node_iterator; - node_iterator node_begin() const { return Nodes.compat_begin(); } - node_iterator node_end() const { return Nodes.compat_end(); } + typedef NodeListTy::iterator node_iterator; + node_iterator node_begin() { return Nodes.begin(); } + node_iterator node_end() { return Nodes.end(); } + + typedef NodeListTy::const_iterator node_const_iterator; + node_const_iterator node_begin() const { return Nodes.begin(); } + node_const_iterator node_end() const { return Nodes.end(); } /// getFunctionNames - Return a space separated list of the name of the /// functions in this graph (if any) @@ -337,7 +341,7 @@ public: /// void maskNodeTypes(unsigned Mask) { for (node_iterator I = node_begin(), E = node_end(); I != E; ++I) - (*I)->maskNodeTypes(Mask); + I->maskNodeTypes(Mask); } void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); } |