summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-06 17:39:28 +0000
committerChris Lattner <sabre@nondot.org>2002-03-06 17:39:28 +0000
commite1755d39c0f805e0bf8130b4046f1a7485080ae7 (patch)
treecfa72ff29717cce342d217b5ea0a141e512ceed7 /include
parent4ce0f8aa9ee0038ba741291e2ae1188be75d1d8b (diff)
downloadllvm-e1755d39c0f805e0bf8130b4046f1a7485080ae7.tar.gz
llvm-e1755d39c0f805e0bf8130b4046f1a7485080ae7.tar.bz2
llvm-e1755d39c0f805e0bf8130b4046f1a7485080ae7.tar.xz
Pull Callgraph out of the cfg namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/Writer.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/include/llvm/Analysis/Writer.h b/include/llvm/Analysis/Writer.h
index daaf65729e..a3539a865c 100644
--- a/include/llvm/Analysis/Writer.h
+++ b/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