[llvm-commits] CVS: llvm/include/llvm/Analysis/CallGraph.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 17 17:11:01 PST 2002


Changes in directory llvm/include/llvm/Analysis:

CallGraph.h updated: 1.24 -> 1.25

---
Log message:

Omit the indirect node when printing call graphs


---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.24 llvm/include/llvm/Analysis/CallGraph.h:1.25
--- llvm/include/llvm/Analysis/CallGraph.h:1.24	Sun Nov  3 20:53:39 2002
+++ llvm/include/llvm/Analysis/CallGraph.h	Sun Nov 17 17:10:27 2002
@@ -253,7 +253,9 @@
   // 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) {
-    return map_iterator(CG->begin(), DerefFun(CGdereference));
+    CallGraph::iterator I = CG->begin();
+    ++I;
+    return map_iterator(I, DerefFun(CGdereference));
   }
   static nodes_iterator nodes_end  (CallGraph *CG) {
     return map_iterator(CG->end(), DerefFun(CGdereference));





More information about the llvm-commits mailing list