mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
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:
@ -51,6 +51,20 @@ namespace cfg {
|
|||||||
inline ostream &operator <<(ostream &o, const DominanceFrontier &DF) {
|
inline ostream &operator <<(ostream &o, const DominanceFrontier &DF) {
|
||||||
WriteToOutput(DF, o); return o;
|
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
|
} // End namespace CFG
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user