summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-11-25 21:38:12 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-11-25 21:38:12 +0000
commit113ec35f7f69bd66c0fbab7b42e2b9d59eddb946 (patch)
tree3b134d1c1e4f3a77e35efe15051cb40295f4e801 /tools
parentd91487785f641af7f5c6c32b04cb28cfe94518a9 (diff)
downloadexternal_llvm-113ec35f7f69bd66c0fbab7b42e2b9d59eddb946.zip
external_llvm-113ec35f7f69bd66c0fbab7b42e2b9d59eddb946.tar.gz
external_llvm-113ec35f7f69bd66c0fbab7b42e2b9d59eddb946.tar.bz2
Since the old llvmc was removed, rename llvmc2 to llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile10
-rw-r--r--tools/llvmc/CMakeLists.txt (renamed from tools/llvmc2/CMakeLists.txt)0
-rw-r--r--tools/llvmc/Makefile (renamed from tools/llvmc2/Makefile)4
-rw-r--r--tools/llvmc/doc/LLVMC-Reference.rst (renamed from tools/llvmc2/doc/LLVMC-Reference.rst)14
-rw-r--r--tools/llvmc/doc/LLVMC-Tutorial.rst (renamed from tools/llvmc2/doc/LLVMC-Tutorial.rst)5
-rw-r--r--tools/llvmc/doc/Makefile21
-rw-r--r--tools/llvmc/doc/img/lines.gif (renamed from tools/llvmc2/doc/img/lines.gif)bin91 -> 91 bytes
-rw-r--r--tools/llvmc/doc/llvm.css (renamed from tools/llvmc2/doc/llvm.css)0
-rw-r--r--tools/llvmc/driver/Action.cpp (renamed from tools/llvmc2/driver/Action.cpp)0
-rw-r--r--tools/llvmc/driver/CMakeLists.txt (renamed from tools/llvmc2/driver/CMakeLists.txt)0
-rw-r--r--tools/llvmc/driver/CompilationGraph.cpp (renamed from tools/llvmc2/driver/CompilationGraph.cpp)0
-rw-r--r--tools/llvmc/driver/Error.h (renamed from tools/llvmc2/driver/Error.h)0
-rw-r--r--tools/llvmc/driver/Makefile (renamed from tools/llvmc2/driver/Makefile)2
-rw-r--r--tools/llvmc/driver/Plugin.cpp (renamed from tools/llvmc2/driver/Plugin.cpp)2
-rw-r--r--tools/llvmc/driver/llvmc.cpp (renamed from tools/llvmc2/driver/llvmc.cpp)0
-rw-r--r--tools/llvmc/plugins/Base/Base.td (renamed from tools/llvmc2/plugins/Base/Base.td)0
-rw-r--r--tools/llvmc/plugins/Base/Makefile (renamed from tools/llvmc2/plugins/Base/Makefile)2
-rw-r--r--tools/llvmc/plugins/Base/PluginMain.cpp (renamed from tools/llvmc2/plugins/Base/PluginMain.cpp)0
-rw-r--r--tools/llvmc/plugins/Clang/Clang.td (renamed from tools/llvmc2/plugins/Clang/Clang.td)1
-rw-r--r--tools/llvmc/plugins/Clang/Makefile (renamed from tools/llvmc2/plugins/Clang/Makefile)3
-rw-r--r--tools/llvmc/plugins/Clang/PluginMain.cpp (renamed from tools/llvmc2/plugins/Clang/PluginMain.cpp)0
-rw-r--r--tools/llvmc/plugins/Hello/Hello.cpp (renamed from tools/llvmc2/plugins/Hello/Hello.cpp)2
-rw-r--r--tools/llvmc/plugins/Hello/Makefile (renamed from tools/llvmc2/plugins/Hello/Makefile)2
-rw-r--r--tools/llvmc/plugins/Makefile (renamed from tools/llvmc2/plugins/Makefile)2
-rw-r--r--tools/llvmc/plugins/Simple/Makefile (renamed from tools/llvmc2/plugins/Simple/Makefile)2
-rw-r--r--tools/llvmc/plugins/Simple/PluginMain.cpp (renamed from tools/llvmc2/plugins/Simple/PluginMain.cpp)0
-rw-r--r--tools/llvmc/plugins/Simple/Simple.td (renamed from tools/llvmc2/plugins/Simple/Simple.td)0
-rw-r--r--tools/llvmc2/doc/Makefile13
28 files changed, 44 insertions, 41 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 30da522..2726c1f 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,22 +1,22 @@
##===- tools/Makefile --------------------------------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
-#
+#
##===----------------------------------------------------------------------===##
LEVEL := ..
-# NOTE: The tools are organized into five groups of four consisting of one
-# large and three small executables. This is done to minimize memory load
+# NOTE: The tools are organized into five groups of four consisting of one
+# large and three small executables. This is done to minimize memory load
# in parallel builds. Please retain this ordering.
PARALLEL_DIRS := llvm-config \
opt llvm-as llvm-dis \
llc llvm-ranlib llvm-ar llvm-nm \
llvm-ld llvm-prof llvm-link \
lli gccas gccld llvm-extract llvm-db \
- bugpoint llvm-bcanalyzer llvm-stub llvmc2
+ bugpoint llvm-bcanalyzer llvm-stub llvmc
include $(LEVEL)/Makefile.config
diff --git a/tools/llvmc2/CMakeLists.txt b/tools/llvmc/CMakeLists.txt
index f820419..f820419 100644
--- a/tools/llvmc2/CMakeLists.txt
+++ b/tools/llvmc/CMakeLists.txt
diff --git a/tools/llvmc2/Makefile b/tools/llvmc/Makefile
index 22ca29e..8eb35cb 100644
--- a/tools/llvmc2/Makefile
+++ b/tools/llvmc/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===##
+##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
@@ -10,7 +10,7 @@
LEVEL = ../..
BUILTIN_PLUGINS = Base
-DRIVER_NAME = llvmc2
+DRIVER_NAME = llvmc
DIRS = plugins driver
export BUILTIN_PLUGINS
diff --git a/tools/llvmc2/doc/LLVMC-Reference.rst b/tools/llvmc/doc/LLVMC-Reference.rst
index 01a8be0..77d9d2b 100644
--- a/tools/llvmc2/doc/LLVMC-Reference.rst
+++ b/tools/llvmc/doc/LLVMC-Reference.rst
@@ -31,7 +31,7 @@ although there are some small differences. Most of the time, however,
you shouldn't be able to notice them::
$ # This works as expected:
- $ llvmc2 -O3 -Wall hello.cpp
+ $ llvmc -O3 -Wall hello.cpp
$ ./a.out
hello
@@ -43,7 +43,7 @@ extensions). If you want to force files ending with ".c" to compile as
C++, use the ``-x`` option, just like you would do it with ``gcc``::
$ # hello.c is really a C++ file
- $ llvmc2 -x c++ hello.c
+ $ llvmc -x c++ hello.c
$ ./a.out
hello
@@ -51,10 +51,10 @@ On the other hand, when using LLVMC as a linker to combine several C++
object files you should provide the ``--linker`` option since it's
impossible for LLVMC to choose the right linker in that case::
- $ llvmc2 -c hello.cpp
- $ llvmc2 hello.o
+ $ llvmc -c hello.cpp
+ $ llvmc hello.o
[A lot of link-time errors skipped]
- $ llvmc2 --linker=c++ hello.o
+ $ llvmc --linker=c++ hello.o
$ ./a.out
hello
@@ -138,7 +138,7 @@ directory and run ``make``. The resulting file will be called
$ cd $LLVMC_DIR/plugins/Simple
$ make
- $ llvmc2 -load $LLVM_DIR/Release/lib/LLVMCSimple.so
+ $ llvmc -load $LLVM_DIR/Release/lib/LLVMCSimple.so
Sometimes, you will want a 'bare-bones' version of LLVMC that has no
built-in plugins. It can be compiled with the following command::
@@ -229,7 +229,7 @@ which gets a special treatment - there you are allowed to specify one
default edge *per language*).
To get a visual representation of the compilation graph (useful for
-debugging), run ``llvmc2 --view-graph``. You will need ``dot`` and
+debugging), run ``llvmc --view-graph``. You will need ``dot`` and
``gsview`` installed for this to work properly.
diff --git a/tools/llvmc2/doc/LLVMC-Tutorial.rst b/tools/llvmc/doc/LLVMC-Tutorial.rst
index 724fd4d..d41f90d 100644
--- a/tools/llvmc2/doc/LLVMC-Tutorial.rst
+++ b/tools/llvmc/doc/LLVMC-Tutorial.rst
@@ -20,7 +20,7 @@ Compiling with LLVMC
In general, LLVMC tries to be command-line compatible with ``gcc`` as
much as possible, so most of the familiar options work::
- $ llvmc2 -O3 -Wall hello.cpp
+ $ llvmc -O3 -Wall hello.cpp
$ ./a.out
hello
@@ -38,7 +38,7 @@ be familiar with it to get anything done.
Start by compiling ``plugins/Simple/Simple.td``, which is a primitive
wrapper for ``gcc``::
- $ cd $LLVM_DIR/tools/llvmc2
+ $ cd $LLVM_DIR/tools/llvmc
$ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple
$ cat > hello.c
[...]
@@ -98,4 +98,3 @@ References
.. [1] TableGen Fundamentals
http://llvm.cs.uiuc.edu/docs/TableGenFundamentals.html
-
diff --git a/tools/llvmc/doc/Makefile b/tools/llvmc/doc/Makefile
new file mode 100644
index 0000000..864376f
--- /dev/null
+++ b/tools/llvmc/doc/Makefile
@@ -0,0 +1,21 @@
+##===- tools/llvmc/doc/Makefile ----------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet
+
+all : LLVMC-Reference.html LLVMC-Tutorial.html
+
+LLVMC-Tutorial.html : LLVMC-Tutorial.rst llvm.css
+ $(RST2HTML) $< $@
+
+LLVMC-Reference.html : LLVMC-Reference.rst llvm.css
+ $(RST2HTML) $< $@
+
+clean :
+ rm *.html
diff --git a/tools/llvmc2/doc/img/lines.gif b/tools/llvmc/doc/img/lines.gif
index 88f491e..88f491e 100644
--- a/tools/llvmc2/doc/img/lines.gif
+++ b/tools/llvmc/doc/img/lines.gif
Binary files differ
diff --git a/tools/llvmc2/doc/llvm.css b/tools/llvmc/doc/llvm.css
index 1c7e5cc..1c7e5cc 100644
--- a/tools/llvmc2/doc/llvm.css
+++ b/tools/llvmc/doc/llvm.css
diff --git a/tools/llvmc2/driver/Action.cpp b/tools/llvmc/driver/Action.cpp
index c0a1b84..c0a1b84 100644
--- a/tools/llvmc2/driver/Action.cpp
+++ b/tools/llvmc/driver/Action.cpp
diff --git a/tools/llvmc2/driver/CMakeLists.txt b/tools/llvmc/driver/CMakeLists.txt
index 7d4e967..7d4e967 100644
--- a/tools/llvmc2/driver/CMakeLists.txt
+++ b/tools/llvmc/driver/CMakeLists.txt
diff --git a/tools/llvmc2/driver/CompilationGraph.cpp b/tools/llvmc/driver/CompilationGraph.cpp
index 81283ba..81283ba 100644
--- a/tools/llvmc2/driver/CompilationGraph.cpp
+++ b/tools/llvmc/driver/CompilationGraph.cpp
diff --git a/tools/llvmc2/driver/Error.h b/tools/llvmc/driver/Error.h
index c0aaff1..c0aaff1 100644
--- a/tools/llvmc2/driver/Error.h
+++ b/tools/llvmc/driver/Error.h
diff --git a/tools/llvmc2/driver/Makefile b/tools/llvmc/driver/Makefile
index 7c04fe4..d3aa2cd 100644
--- a/tools/llvmc2/driver/Makefile
+++ b/tools/llvmc/driver/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/src/Makefile ---------------------------*- Makefile -*-===##
+##===- tools/llvmc/driver/Makefile -------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
diff --git a/tools/llvmc2/driver/Plugin.cpp b/tools/llvmc/driver/Plugin.cpp
index 17c7086..75abbd0 100644
--- a/tools/llvmc2/driver/Plugin.cpp
+++ b/tools/llvmc/driver/Plugin.cpp
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// Plugin support for llvmc2.
+// Plugin support.
//
//===----------------------------------------------------------------------===//
diff --git a/tools/llvmc2/driver/llvmc.cpp b/tools/llvmc/driver/llvmc.cpp
index f3a1e57..f3a1e57 100644
--- a/tools/llvmc2/driver/llvmc.cpp
+++ b/tools/llvmc/driver/llvmc.cpp
diff --git a/tools/llvmc2/plugins/Base/Base.td b/tools/llvmc/plugins/Base/Base.td
index 85a37cb..85a37cb 100644
--- a/tools/llvmc2/plugins/Base/Base.td
+++ b/tools/llvmc/plugins/Base/Base.td
diff --git a/tools/llvmc2/plugins/Base/Makefile b/tools/llvmc/plugins/Base/Makefile
index c1579d1..5ca6048 100644
--- a/tools/llvmc2/plugins/Base/Makefile
+++ b/tools/llvmc/plugins/Base/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/plugins/Base/Makefile ------------------*- Makefile -*-===##
+##===- tools/llvmc/plugins/Base/Makefile -------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
diff --git a/tools/llvmc2/plugins/Base/PluginMain.cpp b/tools/llvmc/plugins/Base/PluginMain.cpp
index add8acb..add8acb 100644
--- a/tools/llvmc2/plugins/Base/PluginMain.cpp
+++ b/tools/llvmc/plugins/Base/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Clang/Clang.td b/tools/llvmc/plugins/Clang/Clang.td
index ee6987f..0f5d8cd 100644
--- a/tools/llvmc2/plugins/Clang/Clang.td
+++ b/tools/llvmc/plugins/Clang/Clang.td
@@ -83,4 +83,3 @@ def CompilationGraph : CompilationGraph<[
Edge<"clang_cpp", "llvm_ld">,
Edge<"clang_objective_c", "llvm_ld">
]>;
-
diff --git a/tools/llvmc2/plugins/Clang/Makefile b/tools/llvmc/plugins/Clang/Makefile
index 237cc73..3206013 100644
--- a/tools/llvmc2/plugins/Clang/Makefile
+++ b/tools/llvmc/plugins/Clang/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/plugins/Clang/Makefile -----------------*- Makefile -*-===##
+##===- tools/llvmc/plugins/Clang/Makefile ------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
@@ -11,4 +11,3 @@ LLVMC_PLUGIN = Clang
BUILT_SOURCES = AutoGenerated.inc
include ../Makefile
-
diff --git a/tools/llvmc2/plugins/Clang/PluginMain.cpp b/tools/llvmc/plugins/Clang/PluginMain.cpp
index add8acb..add8acb 100644
--- a/tools/llvmc2/plugins/Clang/PluginMain.cpp
+++ b/tools/llvmc/plugins/Clang/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Hello/Hello.cpp b/tools/llvmc/plugins/Hello/Hello.cpp
index eb52d24..2ecd2f1 100644
--- a/tools/llvmc2/plugins/Hello/Hello.cpp
+++ b/tools/llvmc/plugins/Hello/Hello.cpp
@@ -28,5 +28,3 @@ struct MyPlugin : public llvmc::BasePlugin {
static llvmc::RegisterPlugin<MyPlugin> RP("Hello", "Hello World plugin");
}
-
-
diff --git a/tools/llvmc2/plugins/Hello/Makefile b/tools/llvmc/plugins/Hello/Makefile
index f0d51dd..181dd0c 100644
--- a/tools/llvmc2/plugins/Hello/Makefile
+++ b/tools/llvmc/plugins/Hello/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/plugins/Hello/Makefile -----------------*- Makefile -*-===##
+##===- tools/llvmc/plugins/Hello/Makefile ------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
diff --git a/tools/llvmc2/plugins/Makefile b/tools/llvmc/plugins/Makefile
index 041b045..dab58e0 100644
--- a/tools/llvmc2/plugins/Makefile
+++ b/tools/llvmc/plugins/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/plugins/Makefile.plugins ----------------*- Makefile -*-===##
+##===- tools/llvmc/plugins/Makefile.plugins ----------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
diff --git a/tools/llvmc2/plugins/Simple/Makefile b/tools/llvmc/plugins/Simple/Makefile
index 4a16256..1cd5af7 100644
--- a/tools/llvmc2/plugins/Simple/Makefile
+++ b/tools/llvmc/plugins/Simple/Makefile
@@ -1,4 +1,4 @@
-##===- tools/llvmc2/plugins/Simple/Makefile ------------------*- Makefile -*-===##
+##===- tools/llvmc/plugins/Simple/Makefile -----------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
diff --git a/tools/llvmc2/plugins/Simple/PluginMain.cpp b/tools/llvmc/plugins/Simple/PluginMain.cpp
index add8acb..add8acb 100644
--- a/tools/llvmc2/plugins/Simple/PluginMain.cpp
+++ b/tools/llvmc/plugins/Simple/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Simple/Simple.td b/tools/llvmc/plugins/Simple/Simple.td
index b974cbc..b974cbc 100644
--- a/tools/llvmc2/plugins/Simple/Simple.td
+++ b/tools/llvmc/plugins/Simple/Simple.td
diff --git a/tools/llvmc2/doc/Makefile b/tools/llvmc2/doc/Makefile
deleted file mode 100644
index c71f662..0000000
--- a/tools/llvmc2/doc/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-
-RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet
-
-all : LLVMC-Reference.html LLVMC-Tutorial.html
-
-LLVMC-Tutorial.html : LLVMC-Tutorial.rst llvm.css
- $(RST2HTML) $< $@
-
-LLVMC-Reference.html : LLVMC-Reference.rst llvm.css
- $(RST2HTML) $< $@
-
-clean :
- rm *.html