diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-12-04 06:38:45 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-12-04 06:38:45 +0000 |
commit | 14d122d1e12cccd89611132195c0c884ff20f08c (patch) | |
tree | 17563f523fd561bc69b759a4628ad4dffbcfdb0a /tools/llvmc/plugins | |
parent | b6244a12df638a1e891969f5d98c39061a4afedb (diff) | |
download | external_llvm-14d122d1e12cccd89611132195c0c884ff20f08c.zip external_llvm-14d122d1e12cccd89611132195c0c884ff20f08c.tar.gz external_llvm-14d122d1e12cccd89611132195c0c884ff20f08c.tar.bz2 |
Forward -m32/-m64 to the linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/plugins')
-rw-r--r-- | tools/llvmc/plugins/Base/Base.td.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in index 84eb770..e2b6eca 100644 --- a/tools/llvmc/plugins/Base/Base.td.in +++ b/tools/llvmc/plugins/Base/Base.td.in @@ -38,6 +38,10 @@ def OptList : OptionList<[ (help "Compile and assemble, but do not link")), (switch_option "pthread", (help "Enable threads")), + (switch_option "m32", + (help "Generate code for a 32-bit environment"), (hidden)), + (switch_option "m64", + (help "Generate code for a 64-bit environment"), (hidden)), (switch_option "fPIC", (help "Relocation model: PIC"), (hidden)), (switch_option "mdynamic-no-pic", @@ -128,6 +132,8 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool< (not_empty "march"), (forward "march"), (not_empty "mtune"), (forward "mtune"), (not_empty "mcpu"), (forward "mcpu"), + (switch_on "m32"), (forward "m32"), + (switch_on "m64"), (forward "m64"), (switch_on "O1"), (forward "O1"), (switch_on "O2"), (forward "O2"), (switch_on "O3"), (forward "O3"), @@ -207,6 +213,8 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool< (not_empty "F"), (forward "F"), (not_empty "framework"), (forward "framework"), (not_empty "weak_framework"), (forward "weak_framework"), + (switch_on "m32"), (forward "m32"), + (switch_on "m64"), (forward "m64"), (not_empty "l"), (forward "l"), (not_empty "Wl,"), (forward "Wl,"))) ]>; |