diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-01-28 18:19:36 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-01-28 18:19:36 +0000 |
commit | 1124cc02b475e42a46b31c076d1248a6daf723df (patch) | |
tree | 5eeac4b17342f49f5c324091700643bc68242848 /tools/llvmc | |
parent | 8ca83b4111972f626a3e3f9af41f55718bf68927 (diff) |
Support some more options...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index 38f7941cd6..c94c3dfb1c 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -50,6 +50,11 @@ def OptList : OptionList<[ (help "Choose linker (possible values: gcc, g++)")), (parameter_option "mtune", (help "Target a specific CPU type"), (hidden)), + (parameter_option "fmessage-length", + (help "Format error messages to fit on lines of about n characters "), + (hidden)), + (parameter_option "std", + (help "Determine the language standard"), (hidden)), // TODO: Add a conditional compilation mechanism to make Darwin-only options // like '-arch' really Darwin-only. @@ -148,6 +153,8 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool< (not_empty "mtune"), (forward "mtune"), (not_empty "mcpu"), (forward "mcpu"), (not_empty "m"), (forward "m"), + (not_empty "std"), (forward "std"), + (not_empty "fmessage-length"), (forward "fmessage-length"), (switch_on "m32"), (forward "m32"), (switch_on "m64"), (forward "m64"), (switch_on "O0"), (forward "O0"), @@ -195,6 +202,7 @@ def llvm_gcc_assembler : Tool< (actions (case (switch_on "c"), (stop_compilation), (not_empty "arch"), (forward "arch"), + (not_empty "fmessage-length"), (forward "fmessage-length"), (not_empty "Wa,"), (forward_value "Wa,"))) ]>; @@ -235,6 +243,7 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool< (not_empty "weak_framework"), (forward "weak_framework"), (switch_on "m32"), (forward "m32"), (switch_on "m64"), (forward "m64"), + (not_empty "fmessage-length"), (forward "fmessage-length"), (not_empty "l"), (forward "l"), (not_empty "Wl,"), (forward "Wl,"))) ]>; |