mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +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:
parent
459fbcff7e
commit
6e9ff7ded6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user