diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-28 01:16:42 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-09-28 01:16:42 +0000 |
commit | ad981bfbccedd4e8c139f27db4bbc49ef3e783b9 (patch) | |
tree | 918743cbb6adb1dc4e0e7ace612d2af513c2c213 /tools/llvmc/plugins | |
parent | d66e8de8385597688e0456307861e4f8173258fd (diff) | |
download | llvm-ad981bfbccedd4e8c139f27db4bbc49ef3e783b9.tar.gz llvm-ad981bfbccedd4e8c139f27db4bbc49ef3e783b9.tar.bz2 llvm-ad981bfbccedd4e8c139f27db4bbc49ef3e783b9.tar.xz |
Add a way to query the number of input files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/plugins')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index d4bff17a31..4b964e3dea 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -70,6 +70,8 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool< !strconcat(cmd_prefix, " -c $INFILE -o $OUTFILE -emit-llvm"))), (actions (case + (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")), [(output_suffix "ll"), (stop_compilation)], |