blob: b974cbc95eb69fc0393a6a9fe11762b417e018a5 [file] [log] [blame]
Mikhail Glushenkovcc30d9c2008-10-16 14:02:29 +00001// A simple wrapper for gcc.
2// To compile, use this command:
3//
4// $ cd $LLVMC2_DIR
5// $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple
6//
7// To build this plugin as a dynamic library:
8//
9// $ cd $LLVMC2_DIR
10// $ make BUILTIN_PLUGINS=""
11// $ cd plugins/Simple
12// $ make
13//
14// Run as:
15//
16// $ llvmc2 -load $LLVM_DIR/Release/lib/LLVMCSimple.so
17
18include "llvm/CompilerDriver/Common.td"
19
20def gcc : Tool<
21[(in_language "c"),
22 (out_language "executable"),
23 (output_suffix "out"),
24 (cmd_line "gcc $INFILE -o $OUTFILE"),
25 (sink)
26]>;
27
28def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
29
Mikhail Glushenkov01088772008-11-17 17:29:18 +000030def CompilationGraph : CompilationGraph<[Edge<"root", "gcc">]>;