diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-19 20:04:19 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-19 20:04:19 +0000 |
| commit | 28eefa69aae1dddd5ae49a3de79ece9bf3fc107b (patch) | |
| tree | aabf6674340d3302ccf75e8c951277de3f7139ce /tools/llvmc/example/Simple | |
| parent | f50ab2ac15d7fdbd115c7485d16c554e55e37df9 (diff) | |
| download | external_llvm-28eefa69aae1dddd5ae49a3de79ece9bf3fc107b.zip external_llvm-28eefa69aae1dddd5ae49a3de79ece9bf3fc107b.tar.gz external_llvm-28eefa69aae1dddd5ae49a3de79ece9bf3fc107b.tar.bz2 | |
llvmc: Update examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/example/Simple')
| -rw-r--r-- | tools/llvmc/example/Simple/Makefile | 15 | ||||
| -rw-r--r-- | tools/llvmc/example/Simple/PluginMain.cpp | 1 | ||||
| -rw-r--r-- | tools/llvmc/example/Simple/Simple.td | 37 |
3 files changed, 0 insertions, 53 deletions
diff --git a/tools/llvmc/example/Simple/Makefile b/tools/llvmc/example/Simple/Makefile deleted file mode 100644 index d7adb5d..0000000 --- a/tools/llvmc/example/Simple/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -##===- tools/llvmc/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. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../../../.. - -LLVMC_PLUGIN = Simple -BUILT_SOURCES = AutoGenerated.inc - -include $(LEVEL)/Makefile.common diff --git a/tools/llvmc/example/Simple/PluginMain.cpp b/tools/llvmc/example/Simple/PluginMain.cpp deleted file mode 100644 index add8acb..0000000 --- a/tools/llvmc/example/Simple/PluginMain.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "AutoGenerated.inc" diff --git a/tools/llvmc/example/Simple/Simple.td b/tools/llvmc/example/Simple/Simple.td deleted file mode 100644 index 87bc385..0000000 --- a/tools/llvmc/example/Simple/Simple.td +++ /dev/null @@ -1,37 +0,0 @@ -//===- Simple.td - A simple plugin for LLVMC ------------------------------===// -// -// 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 that shows how to write LLVMC plugins. -// -// To compile, use this command: -// -// $ cd $LLVMC_DIR/example/Simple -// $ make -// -// Run as: -// -// $ llvmc -load $LLVM_DIR/Release/lib/plugin_llvmc_Simple.so -// -// For instructions on how to build your own LLVMC-based driver, see -// the 'example/Skeleton' directory. -//===----------------------------------------------------------------------===// - -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">]>; |
