Omit the indirect node when printing call graphs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-17 23:10:27 +00:00
parent e9b309ad13
commit e9c04aedca

View File

@ -253,7 +253,9 @@ template<> struct GraphTraits<CallGraph*> : public GraphTraits<CallGraphNode*> {
// 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));