X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLLVMC%2FAppendCmdHook.td;h=c85f002e6e8b4c7de1d08bebc6efd2da72870f59;hb=b501d4f673c0db267a76800339f9943f2ce6fe33;hp=fc725a7c391f1749863bcdaf4afd25b4d50dd97e;hpb=ed240c474d57e4b591c6193767b8acc8b6e87517;p=oota-llvm.git diff --git a/test/LLVMC/AppendCmdHook.td b/test/LLVMC/AppendCmdHook.td index fc725a7c391..c85f002e6e8 100644 --- a/test/LLVMC/AppendCmdHook.td +++ b/test/LLVMC/AppendCmdHook.td @@ -1,7 +1,8 @@ // Check that hooks can be invoked from 'append_cmd'. // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t // RUN: FileCheck -input-file %t %s -// RUN: %compile_cxx -Qunused-arguments -fexceptions -x c++ %t +// RUN: %compile_cxx %t +// XFAIL: vg_leak include "llvm/CompilerDriver/Common.td" @@ -13,16 +14,16 @@ def OptList : OptionList<[ ]>; def dummy_tool : Tool<[ -(cmd_line "dummy_cmd $INFILE"), +(command "dummy_cmd"), (in_language "dummy_lang"), (out_language "dummy_lang"), (actions (case - // CHECK: push_back("-arg1") - // CHECK: push_back("-arg2") + // CHECK: , "-arg1")); + // CHECK: , "-arg2")); (switch_on "dummy1"), (append_cmd "-arg1 -arg2"), - // CHECK: push_back("-arg3") + // CHECK: , "-arg3")); // CHECK: hooks::MyHook() (switch_on "dummy2"), (append_cmd "-arg3 $CALL(MyHook)"))) ]>; -def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>; +def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;