diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-28 00:06:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-28 00:06:15 +0000 |
commit | 6e9ff7ded6db1ad7314bcba64b6af29116e3f48d (patch) | |
tree | 9e51864a68002ff667337bf472662b9085520539 /include | |
parent | 459fbcff7e6982744de519630e59dc7e68800ec3 (diff) | |
download | external_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.h | 14 |
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 |