[llvm-commits] CVS: llvm/include/llvm/Analysis/CallGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Dec 6 00:41:01 PST 2002
Changes in directory llvm/include/llvm/Analysis:
CallGraph.h updated: 1.25 -> 1.26
---
Log message:
Make sure to print indirect node again
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.25 llvm/include/llvm/Analysis/CallGraph.h:1.26
--- llvm/include/llvm/Analysis/CallGraph.h:1.25 Sun Nov 17 17:10:27 2002
+++ llvm/include/llvm/Analysis/CallGraph.h Fri Dec 6 00:40:00 2002
@@ -253,9 +253,7 @@
// nodes_iterator/begin/end - Allow iteration over all nodes in the graph
typedef mapped_iterator<CallGraph::iterator, DerefFun> nodes_iterator;
static nodes_iterator nodes_begin(CallGraph *CG) {
- CallGraph::iterator I = CG->begin();
- ++I;
- return map_iterator(I, DerefFun(CGdereference));
+ return map_iterator(CG->begin(), DerefFun(CGdereference));
}
static nodes_iterator nodes_end (CallGraph *CG) {
return map_iterator(CG->end(), DerefFun(CGdereference));
More information about the llvm-commits
mailing list