summaryrefslogtreecommitdiff
path: root/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-12-15 01:22:05 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-12-15 01:22:05 +0000
commitbebea87284a3039506f7f502ac85d02f68c9e8d2 (patch)
treebca30ecb1fba1629ff720600b9ddfbbe2111694c /tools/llvmc
parent87685e8e8feda36d14abe3b7803786cbbe61a01a (diff)
downloadllvm-bebea87284a3039506f7f502ac85d02f68c9e8d2.tar.gz
llvm-bebea87284a3039506f7f502ac85d02f68c9e8d2.tar.bz2
llvm-bebea87284a3039506f7f502ac85d02f68c9e8d2.tar.xz
llvmc: Forward -march/-mcpu/-mtune to as & ld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r--tools/llvmc/src/Base.td.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in
index efb259fbe0..150829da56 100644
--- a/tools/llvmc/src/Base.td.in
+++ b/tools/llvmc/src/Base.td.in
@@ -276,6 +276,9 @@ def llvm_gcc_assembler : Tool<
(switch_on "c"), (stop_compilation),
(not_empty "arch"), (forward "arch"),
(not_empty "Xassembler"), (forward "Xassembler"),
+ (not_empty "march"), (forward "march"),
+ (not_empty "mcpu"), (forward "mcpu"),
+ (not_empty "mtune"), (forward "mtune"),
(switch_on "m32"), (forward "m32"),
(switch_on "m64"), (forward "m64"),
(not_empty "Wa,"), (forward "Wa,")))
@@ -321,6 +324,9 @@ class llvm_gcc_based_linker <string cmd, dag on_empty> : Tool<
(not_empty "framework"), (forward "framework"),
(not_empty "weak_framework"), (forward "weak_framework"),
(not_empty "filelist"), (forward "filelist"),
+ (not_empty "march"), (forward "march"),
+ (not_empty "mcpu"), (forward "mcpu"),
+ (not_empty "mtune"), (forward "mtune"),
(switch_on "m32"), (forward "m32"),
(switch_on "m64"), (forward "m64"),
(not_empty "l"), (forward "l"),