summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-28 00:06:15 +0000
committerChris Lattner <sabre@nondot.org>2001-09-28 00:06:15 +0000
commit6e9ff7ded6db1ad7314bcba64b6af29116e3f48d (patch)
tree9e51864a68002ff667337bf472662b9085520539 /include
parent459fbcff7e6982744de519630e59dc7e68800ec3 (diff)
downloadexternal_llvm-6e9ff7ded6db1ad7314bcba64b6af29116e3f48d.zip
external_llvm-6e9ff7ded6db1ad7314bcba64b6af29116e3f48d.tar.gz
external_llvm-6e9ff7ded6db1ad7314bcba64b6af29116e3f48d.tar.bz2
Add capability to print out call graph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/Writer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Writer.h b/include/llvm/Analysis/Writer.h
index f6a4101..a368af0 100644
--- a/include/llvm/Analysis/Writer.h
+++ b/include/llvm/Analysis/Writer.h
@@ -51,6 +51,20 @@ namespace cfg {
inline ostream &operator <<(ostream &o, const DominanceFrontier &DF) {
WriteToOutput(DF, o); return o;
}
+
+ // Stuff for printing out a callgraph...
+ class CallGraph;
+ class CallGraphNode;
+
+ void WriteToOutput(const CallGraph &, ostream &o);
+ inline ostream &operator <<(ostream &o, const CallGraph &CG) {
+ WriteToOutput(CG, o); return o;
+ }
+
+ void WriteToOutput(const CallGraphNode *, ostream &o);
+ inline ostream &operator <<(ostream &o, const CallGraphNode *CG) {
+ WriteToOutput(CG, o); return o;
+ }
} // End namespace CFG
#endif