1 // Check that a hook can be given $INFILE as an argument.
2 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3 // RUN: FileCheck -input-file %t %s
4 // RUN: %compile_cxx %t
7 include "llvm/CompilerDriver/Common.td"
9 def dummy_tool : Tool<[
10 // CHECK: Hook(inFile.c_str())
11 (command "$CALL(Hook, '$INFILE')/path"),
12 (in_language "dummy"),
13 (out_language "dummy")
16 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;