1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-29 06:52:55 +01:00
llvm-mirror/tools/llvmc2/examples/Simple.td
Mikhail Glushenkov 2b1ce739f3 Documentation and examples improvements
llvm-svn: 51739
2008-05-30 06:16:32 +00:00

18 lines
406 B
TableGen

// A simple wrapper for gcc.
// To compile, use this command:
// make TOOLNAME=llvmc_simple GRAPH=examples/Simple.td
include "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>]>;