[llvm-commits] [llvm] r57578 - in /llvm/trunk/tools/llvmc2: Makefile plugins/Base/PluginMain.cpp plugins/Clang/PluginMain.cpp plugins/Makefile plugins/Simple/Makefile plugins/Simple/PluginMain.cpp plugins/Simple/Simple.td
Anton Korobeynikov
asl at math.spbu.ru
Wed Oct 15 07:22:08 PDT 2008
Author: asl
Date: Wed Oct 15 09:22:06 2008
New Revision: 57578
URL: http://llvm.org/viewvc/llvm-project?rev=57578&view=rev
Log:
Temporary revert r57567 and unbreak the build.
Removed:
llvm/trunk/tools/llvmc2/plugins/Base/PluginMain.cpp
llvm/trunk/tools/llvmc2/plugins/Clang/PluginMain.cpp
llvm/trunk/tools/llvmc2/plugins/Simple/Makefile
llvm/trunk/tools/llvmc2/plugins/Simple/PluginMain.cpp
llvm/trunk/tools/llvmc2/plugins/Simple/Simple.td
Modified:
llvm/trunk/tools/llvmc2/Makefile
llvm/trunk/tools/llvmc2/plugins/Makefile
Modified: llvm/trunk/tools/llvmc2/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/Makefile?rev=57578&r1=57577&r2=57578&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc2/Makefile (original)
+++ llvm/trunk/tools/llvmc2/Makefile Wed Oct 15 09:22:06 2008
@@ -11,7 +11,7 @@
BUILTIN_PLUGINS = Base
DRIVER_NAME = llvmc2
-DIRS = plugins driver
+DIRS = plugins driver
export BUILTIN_PLUGINS
export DRIVER_NAME
Removed: llvm/trunk/tools/llvmc2/plugins/Base/PluginMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Base/PluginMain.cpp?rev=57577&view=auto
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Base/PluginMain.cpp (original)
+++ llvm/trunk/tools/llvmc2/plugins/Base/PluginMain.cpp (removed)
@@ -1 +0,0 @@
-#include "AutoGenerated.inc"
Removed: llvm/trunk/tools/llvmc2/plugins/Clang/PluginMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Clang/PluginMain.cpp?rev=57577&view=auto
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Clang/PluginMain.cpp (original)
+++ llvm/trunk/tools/llvmc2/plugins/Clang/PluginMain.cpp (removed)
@@ -1 +0,0 @@
-#include "AutoGenerated.inc"
Modified: llvm/trunk/tools/llvmc2/plugins/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Makefile?rev=57578&r1=57577&r2=57578&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Makefile (original)
+++ llvm/trunk/tools/llvmc2/plugins/Makefile Wed Oct 15 09:22:06 2008
@@ -12,7 +12,7 @@
LEVEL = ../../..
DIRS = $(BUILTIN_PLUGINS)
-# TOFIX: How to build DSO versions of plugins?
+# TOFIX: DSO versions of plugins are not built
export BUILTIN_LLVMC_PLUGIN=1
@@ -22,28 +22,25 @@
LEVEL = ../../../..
-LIBRARYNAME := $(patsubst %,LLVMC%,$(LLVMC_PLUGIN))
+LIBRARYNAME = $(patsubst %,LLVMC%,$(LLVMC_PLUGIN))
+TOOLS_SOURCE = $(wildcard $(PROJ_SRC_DIR)/*.td)
REQUIRES_EH = 1
ifndef BUILTIN_LLVMC_PLUGIN
LOADABLE_MODULE = 1
endif
-# This probably breaks the build with $ObjDir != $SrcDir
-TOOLS_SOURCE := $(strip $(wildcard *.td))
-
-ifneq ($(TOOLS_SOURCE),)
-BUILD_AUTOGENERATED_INC = 1
+ifneq ($(TOOLS_SOURCE),"")
+BUILD_AUTOGENERATED_INC=1
BUILT_SOURCES = AutoGenerated.inc
endif
include $(LEVEL)/Makefile.common
-# TOFIX: This probably should go into Makefile.rules
+# TOFIX: This should go into Makefile.rules
ifdef BUILD_AUTOGENERATED_INC
-TD_COMMON :=$(strip $(wildcard \
- $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))
+TD_COMMON = $(wildcard $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td)
$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir \
$(TBLGEN) $(TD_COMMON)
Removed: llvm/trunk/tools/llvmc2/plugins/Simple/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Simple/Makefile?rev=57577&view=auto
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Simple/Makefile (original)
+++ llvm/trunk/tools/llvmc2/plugins/Simple/Makefile (removed)
@@ -1,12 +0,0 @@
-##===- tools/llvmc2/plugins/Simple/Makefile ------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LLVMC_PLUGIN = Simple
-
-include ../Makefile
Removed: llvm/trunk/tools/llvmc2/plugins/Simple/PluginMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Simple/PluginMain.cpp?rev=57577&view=auto
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Simple/PluginMain.cpp (original)
+++ llvm/trunk/tools/llvmc2/plugins/Simple/PluginMain.cpp (removed)
@@ -1 +0,0 @@
-#include "AutoGenerated.inc"
Removed: llvm/trunk/tools/llvmc2/plugins/Simple/Simple.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/plugins/Simple/Simple.td?rev=57577&view=auto
==============================================================================
--- llvm/trunk/tools/llvmc2/plugins/Simple/Simple.td (original)
+++ llvm/trunk/tools/llvmc2/plugins/Simple/Simple.td (removed)
@@ -1,30 +0,0 @@
-// A simple wrapper for gcc.
-// To compile, use this command:
-//
-// $ cd $LLVMC2_DIR
-// $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple
-//
-// To build this plugin as a dynamic library:
-//
-// $ cd $LLVMC2_DIR
-// $ make BUILTIN_PLUGINS=""
-// $ cd plugins/Simple
-// $ make
-//
-// Run as:
-//
-// $ llvmc2 -load $LLVM_DIR/Release/lib/LLVMCSimple.so
-
-include "llvm/CompilerDriver/Common.td"
-
-def gcc : Tool<
-[(in_language "c"),
- (out_language "executable"),
- (output_suffix "out"),
- (cmd_line "gcc $INFILE -o $OUTFILE"),
- (sink)
-]>;
-
-def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
-
-def CompilationGraph : CompilationGraph<[Edge<root, gcc>]>;
More information about the llvm-commits
mailing list