From ac7c298ba896ffa00aeba81d2f63d2188fc0bb35 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Apr 2002 20:31:44 +0000 Subject: [PATCH] Print out what the root of the call graph is. llvm-svn: 2223 --- llvm/lib/Analysis/IPA/CallGraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp index df8d0169cf13..c84719fd6af1 100644 --- a/llvm/lib/Analysis/IPA/CallGraph.cpp +++ b/llvm/lib/Analysis/IPA/CallGraph.cpp @@ -150,6 +150,8 @@ void WriteToOutput(const CallGraphNode *CGN, std::ostream &o) { } void WriteToOutput(const CallGraph &CG, std::ostream &o) { + o << "CallGraph Root is:\n" << CG.getRoot(); + for (CallGraph::const_iterator I = CG.begin(), E = CG.end(); I != E; ++I) o << I->second; }