mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
14 lines
407 B
TableGen
14 lines
407 B
TableGen
|
// Check that a hook can be given $INFILE as an argument.
|
||
|
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
|
||
|
// RUN: grep Hook\\(inFile.c_str\\(\\)\\) %t | count 1
|
||
|
|
||
|
include "llvm/CompilerDriver/Common.td"
|
||
|
|
||
|
def dummy_tool : Tool<[
|
||
|
(cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
|
||
|
(in_language "dummy"),
|
||
|
(out_language "dummy")
|
||
|
]>;
|
||
|
|
||
|
def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
|