From 60cc3e1c4ee03ae6ed6614a58a6001cbcd037963 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Mar 2005 16:46:11 +0000 Subject: [PATCH] add iterators for return nodes list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20617 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DataStructure/DSGraph.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index d323db65ba2..1cf0fdfde31 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/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. ///