diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-17 23:10:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-17 23:10:27 +0000 |
commit | e9c04aedcad5916e5fad3d5fcd2fb47fcb530712 (patch) | |
tree | b1e95b82df846cbf90953b9c105d91b2ed142b9b /include/llvm/Analysis/CallGraph.h | |
parent | e9b309ad132e401bfd204d09e66d33ae242524d5 (diff) | |
download | external_llvm-e9c04aedcad5916e5fad3d5fcd2fb47fcb530712.zip external_llvm-e9c04aedcad5916e5fad3d5fcd2fb47fcb530712.tar.gz external_llvm-e9c04aedcad5916e5fad3d5fcd2fb47fcb530712.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index fde7c82..2b0faa2 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -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)); |