projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. merge fast-isel-shift-imm.ll into fast-isel-x86-64.ll
[oota-llvm.git]
/
test
/
LLVMC
/
HookWithInFile.td
diff --git
a/test/LLVMC/HookWithInFile.td
b/test/LLVMC/HookWithInFile.td
index a2cc4d81549ba5abe305209ecf1dd4783cfe759f..ed08b5321ccfb354deee13a9eaa7e0470d6ea5fb 100644
(file)
--- a/
test/LLVMC/HookWithInFile.td
+++ b/
test/LLVMC/HookWithInFile.td
@@
-1,13
+1,16
@@
// Check that a hook can be given $INFILE as an argument.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// Check that a hook can be given $INFILE as an argument.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep Hook\\(inFile.c_str\\(\\)\\) %t | count 1
+// RUN: FileCheck -input-file %t %s
+// RUN: %compile_cxx %t
+// XFAIL: vg_leak
include "llvm/CompilerDriver/Common.td"
def dummy_tool : Tool<[
include "llvm/CompilerDriver/Common.td"
def dummy_tool : Tool<[
-(cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
+// CHECK: Hook(inFile.c_str())
+(command "$CALL(Hook, '$INFILE')/path"),
(in_language "dummy"),
(out_language "dummy")
]>;
(in_language "dummy"),
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[
SimpleEdge<"root", "dummy_tool">
]>;
+def DummyGraph : CompilationGraph<[
(edge "root", "dummy_tool")
]>;