From 702ad74c4a30965fb2bc614ba0eadf4046d29fc0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Mar 2002 17:39:28 +0000 Subject: [PATCH] Pull Callgraph out of the cfg namespace llvm-svn: 1821 --- llvm/include/llvm/Analysis/Writer.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/llvm/include/llvm/Analysis/Writer.h b/llvm/include/llvm/Analysis/Writer.h index daaf65729e46..a3539a865c13 100644 --- a/llvm/include/llvm/Analysis/Writer.h +++ b/llvm/include/llvm/Analysis/Writer.h @@ -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