mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
llvmc: remove dynamic plugins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111094 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
c0b2a2018a
commit
b3d36293c2
27 files changed
+163
-654
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# add_subdirectory(driver)
|
||||
# add_subdirectory(src)
|
||||
|
||||
# TODO: support plugins and user-configured builds.
|
||||
# See ./doc/LLVMC-Reference.rst "Customizing LLVMC: the compilation graph"
|
||||
@@ -9,9 +9,6 @@
|
||||
|
||||
LEVEL = ../..
|
||||
|
||||
export LLVMC_BASED_DRIVER_NAME = llvmc
|
||||
export LLVMC_BUILTIN_PLUGINS = Base Clang
|
||||
|
||||
DIRS = plugins driver
|
||||
DIRS = src
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
@@ -1,15 +0,0 @@
|
||||
##===- tools/llvmc/plugins/Base/Makefile -------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
|
||||
LLVMC_PLUGIN = Base
|
||||
BUILT_SOURCES = AutoGenerated.inc
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
@@ -1 +0,0 @@
|
||||
#include "AutoGenerated.inc"
|
||||
@@ -1,15 +0,0 @@
|
||||
##===- tools/llvmc/plugins/Clang/Makefile ------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
|
||||
LLVMC_PLUGIN = Clang
|
||||
BUILT_SOURCES = AutoGenerated.inc
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
@@ -1 +0,0 @@
|
||||
#include "AutoGenerated.inc"
|
||||
@@ -1,18 +0,0 @@
|
||||
##===- tools/llvmc/plugins/Makefile ------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open
|
||||
# Source License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../..
|
||||
|
||||
ifneq ($(LLVMC_BUILTIN_PLUGINS),)
|
||||
DIRS = $(LLVMC_BUILTIN_PLUGINS)
|
||||
endif
|
||||
|
||||
export LLVMC_BUILTIN_PLUGIN=1
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
@@ -0,0 +1,17 @@
|
||||
//===- AutoGenerated.td - LLVMC toolchain descriptions -----*- tablegen -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file contains compilation graph description used by llvmc.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
include "Base.td"
|
||||
include "Clang.td"
|
||||
@@ -11,7 +11,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
|
||||
// Options
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
include "llvm/CompilerDriver/Common.td"
|
||||
//===- Clang.td - LLVMC toolchain descriptions -------------*- tablegen -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file contains compilation graph description used by llvmc.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
def Priority : PluginPriority<1>;
|
||||
|
||||
def Options : OptionList<[
|
||||
// Extern options
|
||||
(switch_option "E", (extern)),
|
||||
(switch_option "S", (extern)),
|
||||
(switch_option "c", (extern)),
|
||||
(switch_option "fsyntax-only", (extern)),
|
||||
(switch_option "emit-llvm", (extern)),
|
||||
(switch_option "pthread", (extern)),
|
||||
(parameter_list_option "I", (extern)),
|
||||
(parameter_list_option "include", (extern)),
|
||||
(parameter_list_option "L", (extern)),
|
||||
(parameter_list_option "l", (extern)),
|
||||
(prefix_list_option "Wa,", (extern)),
|
||||
(prefix_list_option "Wl,", (extern)),
|
||||
|
||||
(switch_option "clang", (help "Use Clang instead of llvm-gcc"))
|
||||
]>;
|
||||
|
||||
@@ -71,19 +67,9 @@ def llvm_ld : Tool<
|
||||
(join)
|
||||
]>;
|
||||
|
||||
// Language map
|
||||
|
||||
def LanguageMap : LanguageMap<[
|
||||
LangToSuffixes<"c++", ["cc", "cp", "cxx", "cpp", "CPP", "c++", "C"]>,
|
||||
LangToSuffixes<"c", ["c"]>,
|
||||
LangToSuffixes<"objective-c", ["m"]>,
|
||||
LangToSuffixes<"c-cpp-output", ["i"]>,
|
||||
LangToSuffixes<"objective-c-cpp-output", ["mi"]>
|
||||
]>;
|
||||
|
||||
// Compilation graph
|
||||
|
||||
def CompilationGraph : CompilationGraph<[
|
||||
def ClangCompilationGraph : CompilationGraph<[
|
||||
OptionalEdge<"root", "clang_c",
|
||||
(case (switch_on "clang"), (inc_weight))>,
|
||||
OptionalEdge<"root", "clang_cpp",
|
||||
File renamed without changes.
@@ -7,8 +7,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Just include CompilerDriver/Main.inc.
|
||||
// Just include AutoGenerated.inc and CompilerDriver/Main.inc.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "AutoGenerated.inc"
|
||||
|
||||
#include "llvm/CompilerDriver/Main.inc"
|
||||
@@ -8,6 +8,7 @@
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../..
|
||||
LLVMC_BASED_DRIVER = $(LLVMC_BASED_DRIVER_NAME)
|
||||
LLVMC_BASED_DRIVER = llvmc
|
||||
BUILT_SOURCES = AutoGenerated.inc
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
Reference in new issue
Block a user