Add capability to print out call graph

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-28 00:06:15 +00:00
parent 459fbcff7e
commit 6e9ff7ded6

View File

@ -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