add iterators for return nodes list.
authorChris Lattner <sabre@nondot.org>
Tue, 15 Mar 2005 16:46:11 +0000 (16:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Mar 2005 16:46:11 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20617 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/DSGraph.h

index d323db65ba2b5e3ad61a2788e4fd176a56dcd7dc..1cf0fdfde316c2330a4025894f9f0aeee4502eef 100644 (file)
@@ -264,6 +264,13 @@ public:
     return I->second;
   }
 
+  /// retnodes_* iterator methods: expose iteration over return nodes in the
+  /// graph, which are also the set of functions incorporated in this graph.
+  typedef ReturnNodesTy::const_iterator retnodes_iterator;
+  retnodes_iterator retnodes_begin() const { return ReturnNodes.begin(); }
+  retnodes_iterator retnodes_end() const { return ReturnNodes.end(); }
+
+
   /// getReturnNodes - Return the mapping of functions to their return nodes for
   /// this graph.
   ///