1 //===- Simple.td - A simple LLVMC-based driver ----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // A simple LLVMC-based gcc wrapper.
12 // To compile, use this command:
14 // $ cd $LLVM_OBJ_DIR/tools/llvmc
15 // $ make BUILD_EXAMPLES=1
19 // $ $LLVM_OBJ_DIR/$(BuildMode)/bin/Simple
21 // For instructions on how to build your own LLVMC-based driver, see
22 // the 'examples/Skeleton' directory.
23 //===----------------------------------------------------------------------===//
25 include "llvm/CompilerDriver/Common.td"
29 (out_language "executable"),
30 (output_suffix "out"),
34 // -o is what is used by default, out_file_option here is included for
35 // instructive purposes.
36 (out_file_option "-o")
39 def LanguageMap : LanguageMap<[(lang_to_suffixes "c", "c")]>;
41 def CompilationGraph : CompilationGraph<[(edge "root", "gcc")]>;