aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-10 20:31:44 +0000
committerChris Lattner <sabre@nondot.org>2002-04-10 20:31:44 +0000
commit5648b58a194edf3e1a31d266c9f446c52c57150b (patch)
treecb52fd6386e395617fea05366a4f10d28235cdea /lib
parentb59d8199e0a0a3d1c77cc36f3cfb1c6716a254a8 (diff)
downloadexternal_llvm-5648b58a194edf3e1a31d266c9f446c52c57150b.zip
external_llvm-5648b58a194edf3e1a31d266c9f446c52c57150b.tar.gz
external_llvm-5648b58a194edf3e1a31d266c9f446c52c57150b.tar.bz2
Print out what the root of the call graph is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index df8d016..c84719f 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/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;
}