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 5// XFAIL: vg_leak 6 7include "llvm/CompilerDriver/Common.td" 8 9// CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2); 10// CHECK: "/path" 11// CHECK: std::getenv("VARIABLE") 12// CHECK: "/2path" 13 14def 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") 18]>; 19 20def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>; 21