diff options
Diffstat (limited to 'llvm/tools/llvmc/examples/Simple')
| -rw-r--r-- | llvm/tools/llvmc/examples/Simple/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | llvm/tools/llvmc/examples/Simple/Makefile | 15 | ||||
| -rw-r--r-- | llvm/tools/llvmc/examples/Simple/Simple.cpp | 2 | ||||
| -rw-r--r-- | llvm/tools/llvmc/examples/Simple/Simple.td | 41 |
4 files changed, 0 insertions, 68 deletions
diff --git a/llvm/tools/llvmc/examples/Simple/CMakeLists.txt b/llvm/tools/llvmc/examples/Simple/CMakeLists.txt deleted file mode 100644 index 8a401ea42ae..00000000000 --- a/llvm/tools/llvmc/examples/Simple/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -set(LLVM_TARGET_DEFINITIONS Simple.td) - -tablegen(Simple.inc -gen-llvmc) - -set(LLVM_USED_LIBS CompilerDriver) -set(LLVM_LINK_COMPONENTS support) - -add_llvm_example(Simple - Simple.cpp - ) diff --git a/llvm/tools/llvmc/examples/Simple/Makefile b/llvm/tools/llvmc/examples/Simple/Makefile deleted file mode 100644 index c10387c4f55..00000000000 --- a/llvm/tools/llvmc/examples/Simple/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -##===- llvmc/examples/Simple/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_BASED_DRIVER = Simple -BUILT_SOURCES = Simple.inc - -include $(LEVEL)/Makefile.common diff --git a/llvm/tools/llvmc/examples/Simple/Simple.cpp b/llvm/tools/llvmc/examples/Simple/Simple.cpp deleted file mode 100644 index 8ac73130f9e..00000000000 --- a/llvm/tools/llvmc/examples/Simple/Simple.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "llvm/CompilerDriver/Main.inc" -#include "Simple.inc" diff --git a/llvm/tools/llvmc/examples/Simple/Simple.td b/llvm/tools/llvmc/examples/Simple/Simple.td deleted file mode 100644 index b47483b5d38..00000000000 --- a/llvm/tools/llvmc/examples/Simple/Simple.td +++ /dev/null @@ -1,41 +0,0 @@ -//===- Simple.td - A simple LLVMC-based driver ----------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// A simple LLVMC-based gcc wrapper. -// -// To compile, use this command: -// -// $ cd $LLVM_OBJ_DIR/tools/llvmc -// $ make BUILD_EXAMPLES=1 -// -// Run as: -// -// $ $LLVM_OBJ_DIR/$(BuildMode)/bin/Simple -// -// For instructions on how to build your own LLVMC-based driver, see -// the 'examples/Skeleton' directory. -//===----------------------------------------------------------------------===// - -include "llvm/CompilerDriver/Common.td" - -def gcc : Tool< -[(in_language "c"), - (out_language "executable"), - (output_suffix "out"), - (command "gcc"), - (sink), - - // -o is what is used by default, out_file_option here is included for - // instructive purposes. - (out_file_option "-o") -]>; - -def LanguageMap : LanguageMap<[(lang_to_suffixes "c", "c")]>; - -def CompilationGraph : CompilationGraph<[(edge "root", "gcc")]>; |

