[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 15 08:46:27 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
DSGraph.h updated: 1.90 -> 1.91
---
Log message:
add iterators for return nodes list.
---
Diffs of the changes: (+7 -0)
DSGraph.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/Analysis/DataStructure/DSGraph.h
diff -u llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.90 llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.91
--- llvm/include/llvm/Analysis/DataStructure/DSGraph.h:1.90 Mon Mar 14 18:58:09 2005
+++ llvm/include/llvm/Analysis/DataStructure/DSGraph.h Tue Mar 15 10:46:11 2005
@@ -264,6 +264,13 @@
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.
///
More information about the llvm-commits
mailing list