summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
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
commitac7c298ba896ffa00aeba81d2f63d2188fc0bb35 (patch)
treeebc6e533b9e37a89685f7d5216d1ed72f73fd7bc /llvm/lib/Analysis/IPA/CallGraph.cpp
parent8e79dbf9bd8e2e5343510c335dbdad5320379268 (diff)
downloadbcm5719-llvm-ac7c298ba896ffa00aeba81d2f63d2188fc0bb35.tar.gz
bcm5719-llvm-ac7c298ba896ffa00aeba81d2f63d2188fc0bb35.zip
Print out what the root of the call graph is.
llvm-svn: 2223
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index df8d0169cf1..c84719fd6af 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;
}
OpenPOWER on IntegriCloud