Implement enough of the missing instalias support to get
[oota-llvm.git] / test / LLVMC / AppendCmdHook.td
index fc725a7c391f1749863bcdaf4afd25b4d50dd97e..c85f002e6e8b4c7de1d08bebc6efd2da72870f59 100644 (file)
@@ -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")]>;