1 // Check that hooks with arguments work.
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 // CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
11 // CHECK: std::getenv("VARIABLE")
14 def dummy_tool : Tool<[
15 (command "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2"),
16 (in_language "dummy"),
17 (out_language "dummy")
20 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;