summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-15 16:46:11 +0000
committerChris Lattner <sabre@nondot.org>2005-03-15 16:46:11 +0000
commitf8c924bfcf17bc8752ff2bd7b3484dcb80ac6fc5 (patch)
tree7f05642f0f1d33d7ab6d08336209fb4b9cd8633f /llvm
parent0bda00642fc12ef257f50e49cc8694c6772a474c (diff)
downloadbcm5719-llvm-f8c924bfcf17bc8752ff2bd7b3484dcb80ac6fc5.tar.gz
bcm5719-llvm-f8c924bfcf17bc8752ff2bd7b3484dcb80ac6fc5.zip
add iterators for return nodes list.
llvm-svn: 20617
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/DataStructure/DSGraph.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure/DSGraph.h b/llvm/include/llvm/Analysis/DataStructure/DSGraph.h
index d323db65ba2..1cf0fdfde31 100644
--- a/llvm/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/llvm/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -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.
///
OpenPOWER on IntegriCloud