summaryrefslogtreecommitdiff
path: root/tools/llvmc2
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-12 16:33:06 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-12 16:33:06 +0000
commit5c98d824f681a5d531e619309faefbfa84e230fe (patch)
tree8cff2a794bd09524366b0e66aa8583cfff3a029a /tools/llvmc2
parentecb977e64f5dbe40b35184124f9ac4b0faaea114 (diff)
downloadllvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.gz
llvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.bz2
llvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.xz
Filter option names to escape symbols not allowed as C++ identifiers.
Makes it possible to use options with names like "Wa,". Also fixes the -Wall option handling as a side-effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2')
-rw-r--r--tools/llvmc2/Tools.td6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvmc2/Tools.td b/tools/llvmc2/Tools.td
index 26925628d1..5a614cf4ac 100644
--- a/tools/llvmc2/Tools.td
+++ b/tools/llvmc2/Tools.td
@@ -71,7 +71,7 @@ def llvm_gcc_assembler : Tool<
(cmd_line "llvm-gcc -c -x assembler $INFILE -o $OUTFILE"),
(switch_option "c", (stop_compilation),
(help "Compile and assemble, but do not link")),
- (prefix_list_option "Wa", (unpack_values), (help "pass options to assembler"))
+ (prefix_list_option "Wa,", (unpack_values), (help "pass options to assembler"))
]>;
// Default linker
@@ -83,7 +83,7 @@ def llvm_gcc_linker : Tool<
(join),
(prefix_list_option "L", (forward), (help "add a directory to link path")),
(prefix_list_option "l", (forward), (help "search a library when linking")),
- (prefix_list_option "Wl", (unpack_values), (help "pass options to linker"))
+ (prefix_list_option "Wl,", (unpack_values), (help "pass options to linker"))
]>;
// Alternative linker for C++
@@ -97,7 +97,7 @@ def llvm_gcc_cpp_linker : Tool<
(help "Choose linker (possible values: gcc, g++)")),
(prefix_list_option "L", (forward)),
(prefix_list_option "l", (forward)),
- (prefix_list_option "Wl", (unpack_values))
+ (prefix_list_option "Wl,", (unpack_values))
]>;
// Language map