1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

add iterators for return nodes list.

llvm-svn: 20617
This commit is contained in:
Chris Lattner 2005-03-15 16:46:11 +00:00
parent 6ad326ee0b
commit 0376862732

View 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.
///