aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}