blob: a2cc4d81549ba5abe305209ecf1dd4783cfe759f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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">]>;
|