Remove the code which constant-folded ptrtoint(inttoptr(x)+c) to
[oota-llvm.git] / test / LLVMC / HookWithInFile.td
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 -fexceptions -x c++ %t
5
6 include "llvm/CompilerDriver/Common.td"
7
8 def dummy_tool : Tool<[
9 // CHECK: Hook(inFile.c_str())
10 (command "$CALL(Hook, '$INFILE')/path"),
11 (in_language "dummy"),
12 (out_language "dummy")
13 ]>;
14
15 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;