mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-14 13:07:31 +00:00
a298bb7525
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62685 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
590 B
TableGen
17 lines
590 B
TableGen
// Check that hooks with arguments work.
|
|
// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
|
|
// RUN: grep {Hook(const char\\* Arg0, const char\\* Arg1, const char\\* Arg2);} %t | count 1
|
|
// RUN: grep "/path" %t | count 1
|
|
// RUN: grep "VARIABLE" %t | count 1
|
|
// RUN: grep "/2path" %t | count 1
|
|
|
|
include "llvm/CompilerDriver/Common.td"
|
|
|
|
def dummy_tool : Tool<[
|
|
(cmd_line "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2 $INFILE"),
|
|
(in_language "dummy"),
|
|
(out_language "dummy")
|
|
]>;
|
|
|
|
def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
|