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: grep Hook\\(inFile.c_str\\(\\)\\) %t | count 1
4 // RUN: %compile_cxx -fexceptions -x c++ %t
6 include "llvm/CompilerDriver/Common.td"
8 def dummy_tool : Tool<[
9 (cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
10 (in_language "dummy"),
11 (out_language "dummy")
14 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;