summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-12-15 01:22:10 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-12-15 01:22:10 +0000
commit73e78098fde2c99240795bc972270ec445569277 (patch)
tree5de4f62efebabca5f202e86f8bf1967b82266e6e /tools
parentbebea87284a3039506f7f502ac85d02f68c9e8d2 (diff)
downloadllvm-73e78098fde2c99240795bc972270ec445569277.tar.gz
llvm-73e78098fde2c99240795bc972270ec445569277.tar.bz2
llvm-73e78098fde2c99240795bc972270ec445569277.tar.xz
llvmc: Support -mabi/-mfloat-abi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/src/Base.td.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in
index 150829da56..8a871ad3ff 100644
--- a/tools/llvmc/src/Base.td.in
+++ b/tools/llvmc/src/Base.td.in
@@ -50,6 +50,10 @@ def OptList : OptionList<[
(help "Generate code for the specified machine type")),
(parameter_option "mcpu",
(help "A deprecated synonym for -mtune"), (hidden), (forward_not_split)),
+ (parameter_option "mabi",
+ (help "Generate code for the specified ABI"), (hidden)),
+ (parameter_option "mfloat-abi",
+ (help "Specifies which floating-point ABI to use"), (hidden)),
(switch_option "mfix-and-continue",
(help "Needed by gdb to load .o files dynamically"), (hidden)),
(parameter_option "MF",
@@ -204,6 +208,8 @@ class llvm_gcc_based <string cmd, string in_lang, string E_ext, dag out_lang,
(not_empty "march"), (forward "march"),
(not_empty "mcpu"), (forward "mcpu"),
(not_empty "mtune"), (forward "mtune"),
+ (not_empty "mabi"), (forward "mabi"),
+ (not_empty "mfloat-abi"), (forward "mfloat-abi"),
(not_empty "m"), (forward "m"),
(switch_on "mfix-and-continue"), (forward "mfix-and-continue"),
(switch_on "m32"), (forward "m32"),
@@ -279,6 +285,8 @@ def llvm_gcc_assembler : Tool<
(not_empty "march"), (forward "march"),
(not_empty "mcpu"), (forward "mcpu"),
(not_empty "mtune"), (forward "mtune"),
+ (not_empty "mabi"), (forward "mabi"),
+ (not_empty "mfloat-abi"), (forward "mfloat-abi"),
(switch_on "m32"), (forward "m32"),
(switch_on "m64"), (forward "m64"),
(not_empty "Wa,"), (forward "Wa,")))
@@ -327,6 +335,8 @@ class llvm_gcc_based_linker <string cmd, dag on_empty> : Tool<
(not_empty "march"), (forward "march"),
(not_empty "mcpu"), (forward "mcpu"),
(not_empty "mtune"), (forward "mtune"),
+ (not_empty "mabi"), (forward "mabi"),
+ (not_empty "mfloat-abi"), (forward "mfloat-abi"),
(switch_on "m32"), (forward "m32"),
(switch_on "m64"), (forward "m64"),
(not_empty "l"), (forward "l"),