Pull Callgraph out of the cfg namespace
authorChris Lattner <sabre@nondot.org>
Wed, 6 Mar 2002 17:39:28 +0000 (17:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 6 Mar 2002 17:39:28 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1821 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Writer.h

index daaf65729e4665a15de9e488155f98b9e3fa1ce5..a3539a865c13fd34e9e2648123275ffa60bd95d7 100644 (file)
@@ -55,20 +55,6 @@ namespace cfg {
     WriteToOutput(DF, o); return o;
   }
 
-  // Stuff for printing out a callgraph...
-  class CallGraph;
-  class CallGraphNode;
-
-  void WriteToOutput(const CallGraph &, std::ostream &o);
-  inline std::ostream &operator <<(std::ostream &o, const CallGraph &CG) {
-    WriteToOutput(CG, o); return o;
-  }
-  
-  void WriteToOutput(const CallGraphNode *, std::ostream &o);
-  inline std::ostream &operator <<(std::ostream &o, const CallGraphNode *CGN) {
-    WriteToOutput(CGN, o); return o;
-  }
-
   // Stuff for printing out Loop information
   class Loop;
   class LoopInfo;
@@ -91,5 +77,18 @@ inline std::ostream &operator <<(std::ostream &o, const InductionVariable &IV) {
   WriteToOutput(IV, o); return o;
 }
 
+// Stuff for printing out a callgraph...
+class CallGraph;
+class CallGraphNode;
+
+void WriteToOutput(const CallGraph &, std::ostream &o);
+inline std::ostream &operator <<(std::ostream &o, const CallGraph &CG) {
+  WriteToOutput(CG, o); return o;
+}
+  
+void WriteToOutput(const CallGraphNode *, std::ostream &o);
+inline std::ostream &operator <<(std::ostream &o, const CallGraphNode *CGN) {
+  WriteToOutput(CGN, o); return o;
+}
 
 #endif