projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b59d819
)
Print out what the root of the call graph is.
author
Chris Lattner
<sabre@nondot.org>
Wed, 10 Apr 2002 20:31:44 +0000
(20:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 10 Apr 2002 20:31:44 +0000
(20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2223
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraph.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraph.cpp
b/lib/Analysis/IPA/CallGraph.cpp
index df8d0169cf13bf79dcea9aab3c4d87f69ad0505e..c84719fd6af18291fd92cc38cdb183953788e652 100644
(file)
--- 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;
}