Add capability to print out call graph
authorChris Lattner <sabre@nondot.org>
Fri, 28 Sep 2001 00:06:15 +0000 (00:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Sep 2001 00:06:15 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@654 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Writer.h

index f6a41015d0ea6823a982b7bcd7e247fc6aee60ae..a368af00c1c63e731bd21834f9c3f6c162652ea2 100644 (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