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
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
similarity index 100%
rename from tools/llvmc2/CMakeLists.txt
rename to tools/llvmc/CMakeLists.txt
diff --git a/tools/llvmc2/Makefile b/tools/llvmc/Makefile
similarity index 82%
rename from tools/llvmc2/Makefile
rename to 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
similarity index 98%
rename from tools/llvmc2/doc/LLVMC-Reference.rst
rename to 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 @@
 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 @@
 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 @@
 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 @@
 
     $ 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 @@
 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
similarity index 97%
rename from tools/llvmc2/doc/LLVMC-Tutorial.rst
rename to 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 @@
 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 @@
 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 @@
 
 .. [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
similarity index 100%
rename from tools/llvmc2/doc/img/lines.gif
rename to tools/llvmc/doc/img/lines.gif
Binary files differ
diff --git a/tools/llvmc2/doc/llvm.css b/tools/llvmc/doc/llvm.css
similarity index 100%
rename from tools/llvmc2/doc/llvm.css
rename to tools/llvmc/doc/llvm.css
diff --git a/tools/llvmc2/driver/Action.cpp b/tools/llvmc/driver/Action.cpp
similarity index 100%
rename from tools/llvmc2/driver/Action.cpp
rename to tools/llvmc/driver/Action.cpp
diff --git a/tools/llvmc2/driver/CMakeLists.txt b/tools/llvmc/driver/CMakeLists.txt
similarity index 100%
rename from tools/llvmc2/driver/CMakeLists.txt
rename to tools/llvmc/driver/CMakeLists.txt
diff --git a/tools/llvmc2/driver/CompilationGraph.cpp b/tools/llvmc/driver/CompilationGraph.cpp
similarity index 100%
rename from tools/llvmc2/driver/CompilationGraph.cpp
rename to tools/llvmc/driver/CompilationGraph.cpp
diff --git a/tools/llvmc2/driver/Error.h b/tools/llvmc/driver/Error.h
similarity index 100%
rename from tools/llvmc2/driver/Error.h
rename to tools/llvmc/driver/Error.h
diff --git a/tools/llvmc2/driver/Makefile b/tools/llvmc/driver/Makefile
similarity index 88%
rename from tools/llvmc2/driver/Makefile
rename to 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
similarity index 98%
rename from tools/llvmc2/driver/Plugin.cpp
rename to 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
similarity index 100%
rename from tools/llvmc2/driver/llvmc.cpp
rename to tools/llvmc/driver/llvmc.cpp
diff --git a/tools/llvmc2/plugins/Base/Base.td b/tools/llvmc/plugins/Base/Base.td
similarity index 100%
rename from tools/llvmc2/plugins/Base/Base.td
rename to tools/llvmc/plugins/Base/Base.td
diff --git a/tools/llvmc2/plugins/Base/Makefile b/tools/llvmc/plugins/Base/Makefile
similarity index 84%
rename from tools/llvmc2/plugins/Base/Makefile
rename to 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
similarity index 100%
rename from tools/llvmc2/plugins/Base/PluginMain.cpp
rename to tools/llvmc/plugins/Base/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Clang/Clang.td b/tools/llvmc/plugins/Clang/Clang.td
similarity index 99%
rename from tools/llvmc2/plugins/Clang/Clang.td
rename to 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 @@
     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
similarity index 84%
rename from tools/llvmc2/plugins/Clang/Makefile
rename to 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 @@
 BUILT_SOURCES = AutoGenerated.inc
 
 include ../Makefile
-
diff --git a/tools/llvmc2/plugins/Clang/PluginMain.cpp b/tools/llvmc/plugins/Clang/PluginMain.cpp
similarity index 100%
rename from tools/llvmc2/plugins/Clang/PluginMain.cpp
rename to tools/llvmc/plugins/Clang/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Hello/Hello.cpp b/tools/llvmc/plugins/Hello/Hello.cpp
similarity index 99%
rename from tools/llvmc2/plugins/Hello/Hello.cpp
rename to 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 @@
 static llvmc::RegisterPlugin<MyPlugin> RP("Hello", "Hello World plugin");
 
 }
-
-
diff --git a/tools/llvmc2/plugins/Hello/Makefile b/tools/llvmc/plugins/Hello/Makefile
similarity index 82%
rename from tools/llvmc2/plugins/Hello/Makefile
rename to 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
similarity index 93%
rename from tools/llvmc2/plugins/Makefile
rename to 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
similarity index 79%
rename from tools/llvmc2/plugins/Simple/Makefile
rename to 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
similarity index 100%
rename from tools/llvmc2/plugins/Simple/PluginMain.cpp
rename to tools/llvmc/plugins/Simple/PluginMain.cpp
diff --git a/tools/llvmc2/plugins/Simple/Simple.td b/tools/llvmc/plugins/Simple/Simple.td
similarity index 100%
rename from tools/llvmc2/plugins/Simple/Simple.td
rename to 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