aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-27 00:03:19 +0000
committerChris Lattner <sabre@nondot.org>2001-11-27 00:03:19 +0000
commitcee8f9ae67104576b2028125b56e9ba4856a1d66 (patch)
treec09d4ff10492acc211b36238768e14ccfd32d750 /tools
parent360e17eaf1a2abda82b02235dc57d26d8f83c937 (diff)
Create a new #include "Support/..." directory structure to move things
from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/analyze/analyze.cpp3
-rw-r--r--tools/as/as.cpp7
-rw-r--r--tools/dis/dis.cpp9
-rw-r--r--tools/gccas/gccas.cpp2
-rw-r--r--tools/link/link.cpp4
-rw-r--r--tools/llc/llc.cpp2
-rw-r--r--tools/lli/lli.cpp2
-rw-r--r--tools/llvm-as/as.cpp7
-rw-r--r--tools/llvm-as/llvm-as.cpp7
-rw-r--r--tools/llvm-dis/dis.cpp9
-rw-r--r--tools/llvm-dis/llvm-dis.cpp9
-rw-r--r--tools/llvm-link/llvm-link.cpp4
-rw-r--r--tools/opt/opt.cpp2
13 files changed, 30 insertions, 37 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp
index ec5d2c0431..da7de6ec9a 100644
--- a/tools/analyze/analyze.cpp
+++ b/tools/analyze/analyze.cpp
@@ -15,9 +15,7 @@
#include "llvm/Method.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Assembly/Parser.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Analysis/Writer.h"
-
#include "llvm/Analysis/InstForest.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/IntervalPartition.h"
@@ -27,6 +25,7 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/FindUnsafePointerTypes.h"
#include "llvm/Analysis/FindUsedTypes.h"
+#include "Support/CommandLine.h"
#include <algorithm>
static void PrintMethod(Method *M) {
diff --git a/tools/as/as.cpp b/tools/as/as.cpp
index 72b63ecfdd..ee664f1524 100644
--- a/tools/as/as.cpp
+++ b/tools/as/as.cpp
@@ -9,14 +9,13 @@
//
//===------------------------------------------------------------------------===
-#include <iostream.h>
-#include <fstream.h>
-#include <string>
#include "llvm/Module.h"
#include "llvm/Assembly/Parser.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/CommandLine.h"
+#include "Support/CommandLine.h"
+#include <fstream>
+#include <string>
cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
cl::String OutputFilename("o", "Override output filename", cl::NoFlags, "");
diff --git a/tools/dis/dis.cpp b/tools/dis/dis.cpp
index 712cf85e81..2a7eb4e06e 100644
--- a/tools/dis/dis.cpp
+++ b/tools/dis/dis.cpp
@@ -16,15 +16,14 @@
//
//===----------------------------------------------------------------------===//
-#include <iostream.h>
-#include <fstream.h>
#include "llvm/Module.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Reader.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Method.h"
-#include "llvm/Support/DepthFirstIterator.h"
-#include "llvm/Support/PostOrderIterator.h"
+#include "Support/DepthFirstIterator.h"
+#include "Support/PostOrderIterator.h"
+#include "Support/CommandLine.h"
+#include <fstream>
// OutputMode - The different orderings to print basic blocks in...
enum OutputMode {
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index e19508fdac..c5ab2dff68 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -15,7 +15,7 @@
#include "llvm/Optimizations/DCE.h"
#include "llvm/Transforms/ConstantMerge.h"
#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/CommandLine.h"
+#include "Support/CommandLine.h"
#include <memory>
#include <fstream>
#include <string>
diff --git a/tools/link/link.cpp b/tools/link/link.cpp
index 80a39b2d9c..9bf766fcaa 100644
--- a/tools/link/link.cpp
+++ b/tools/link/link.cpp
@@ -13,10 +13,10 @@
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/Writer.h"
#include "llvm/Assembly/Writer.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Module.h"
#include "llvm/Method.h"
-#include <fstream.h>
+#include "Support/CommandLine.h"
+#include <fstream>
#include <memory>
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 1490cf40d1..7c8c3a608b 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -13,9 +13,9 @@
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Transforms/ConstantMerge.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Module.h"
#include "llvm/Method.h"
+#include "Support/CommandLine.h"
#include <memory>
#include <string>
#include <fstream>
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index ef9dddf750..f4145c169c 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
#include "Interpreter.h"
-#include "llvm/Support/CommandLine.h"
+#include "Support/CommandLine.h"
cl::StringList InputArgv("" , "Input command line", cl::ConsumeAfter);
cl::String MainFunction ("f" , "Function to execute", cl::NoFlags, "main");
diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp
index 72b63ecfdd..ee664f1524 100644
--- a/tools/llvm-as/as.cpp
+++ b/tools/llvm-as/as.cpp
@@ -9,14 +9,13 @@
//
//===------------------------------------------------------------------------===
-#include <iostream.h>
-#include <fstream.h>
-#include <string>
#include "llvm/Module.h"
#include "llvm/Assembly/Parser.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/CommandLine.h"
+#include "Support/CommandLine.h"
+#include <fstream>
+#include <string>
cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
cl::String OutputFilename("o", "Override output filename", cl::NoFlags, "");
diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp
index 72b63ecfdd..ee664f1524 100644
--- a/tools/llvm-as/llvm-as.cpp
+++ b/tools/llvm-as/llvm-as.cpp
@@ -9,14 +9,13 @@
//
//===------------------------------------------------------------------------===
-#include <iostream.h>
-#include <fstream.h>
-#include <string>
#include "llvm/Module.h"
#include "llvm/Assembly/Parser.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/CommandLine.h"
+#include "Support/CommandLine.h"
+#include <fstream>
+#include <string>
cl::String InputFilename ("", "Parse <arg> file, compile to bytecode", 0, "-");
cl::String OutputFilename("o", "Override output filename", cl::NoFlags, "");
diff --git a/tools/llvm-dis/dis.cpp b/tools/llvm-dis/dis.cpp
index 712cf85e81..2a7eb4e06e 100644
--- a/tools/llvm-dis/dis.cpp
+++ b/tools/llvm-dis/dis.cpp
@@ -16,15 +16,14 @@
//
//===----------------------------------------------------------------------===//
-#include <iostream.h>
-#include <fstream.h>
#include "llvm/Module.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Reader.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Method.h"
-#include "llvm/Support/DepthFirstIterator.h"
-#include "llvm/Support/PostOrderIterator.h"
+#include "Support/DepthFirstIterator.h"
+#include "Support/PostOrderIterator.h"
+#include "Support/CommandLine.h"
+#include <fstream>
// OutputMode - The different orderings to print basic blocks in...
enum OutputMode {
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 712cf85e81..2a7eb4e06e 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -16,15 +16,14 @@
//
//===----------------------------------------------------------------------===//
-#include <iostream.h>
-#include <fstream.h>
#include "llvm/Module.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Bytecode/Reader.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Method.h"
-#include "llvm/Support/DepthFirstIterator.h"
-#include "llvm/Support/PostOrderIterator.h"
+#include "Support/DepthFirstIterator.h"
+#include "Support/PostOrderIterator.h"
+#include "Support/CommandLine.h"
+#include <fstream>
// OutputMode - The different orderings to print basic blocks in...
enum OutputMode {
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index 80a39b2d9c..9bf766fcaa 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -13,10 +13,10 @@
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/Writer.h"
#include "llvm/Assembly/Writer.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Module.h"
#include "llvm/Method.h"
-#include <fstream.h>
+#include "Support/CommandLine.h"
+#include <fstream>
#include <memory>
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 0386a4955f..927a69a5f3 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -9,7 +9,6 @@
#include "llvm/Module.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Optimizations/AllOpts.h"
#include "llvm/Transforms/Instrumentation/TraceValues.h"
#include "llvm/Assembly/PrintModulePass.h"
@@ -18,6 +17,7 @@
#include "llvm/Transforms/LevelChange.h"
#include "llvm/Transforms/SwapStructContents.h"
#include "llvm/Transforms/IPO/GlobalDCE.h"
+#include "Support/CommandLine.h"
#include <fstream>
#include <memory>