Minor simplifactions.
authorMikhail Glushenkov <foldr@codedgers.com>
Fri, 1 Jan 2010 04:41:10 +0000 (04:41 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Fri, 1 Jan 2010 04:41:10 +0000 (04:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92393 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/plugins/Base/Base.td.in

index 72623721cdb777a589d07ffdb506dc83d7cecac7..c7ba3be3b8f02d968ff1e4344df03ab2faa795bc 100644 (file)
@@ -124,9 +124,9 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool<
          (and (multiple_input_files), (or (switch_on "S"), (switch_on "c"))),
               (error "cannot specify -o with -c or -S with multiple files"),
          (switch_on "E"), [(stop_compilation), (output_suffix E_ext)],
-         (and (switch_on "emit-llvm"), (switch_on "S")),
+         (switch_on ["emit-llvm", "S"]),
               [(output_suffix "ll"), (stop_compilation)],
-         (and (switch_on "emit-llvm"), (switch_on "c")), (stop_compilation),
+         (switch_on ["emit-llvm", "c"]), (stop_compilation),
          (switch_on "fsyntax-only"), (stop_compilation),
          (not_empty "include"), (forward "include"),
          (not_empty "save-temps"), (append_cmd "-save-temps"),