summaryrefslogtreecommitdiff
path: root/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-22 17:10:09 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-22 17:10:09 +0000
commit028941379d820c0cb2cf9960e4994e83a30a9fcf (patch)
tree3ec404b07da2ce1970b78e7dc4a9e902e18f5a53 /tools/llvmc
parenta63395a30f9227bde826749d3480046301b47332 (diff)
downloadllvm-028941379d820c0cb2cf9960e4994e83a30a9fcf.tar.gz
llvm-028941379d820c0cb2cf9960e4994e83a30a9fcf.tar.bz2
llvm-028941379d820c0cb2cf9960e4994e83a30a9fcf.tar.xz
llvmc: Make -march/-mcpu/-mtune behaviour more consistent with gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r--tools/llvmc/src/Base.td.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in
index cefaf487e8..c1898a694e 100644
--- a/tools/llvmc/src/Base.td.in
+++ b/tools/llvmc/src/Base.td.in
@@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
-
// Options
def OptList : OptionList<[
@@ -46,9 +45,9 @@ def OptList : OptionList<[
(parameter_option "linker",
(help "Choose linker (possible values: gcc, g++)")),
(parameter_option "mtune",
- (help "Target a specific CPU type"), (hidden), (forward_not_split)),
+ (help "Target a specific CPU type"), (forward_not_split)),
(parameter_option "march",
- (help "A synonym for -mtune"), (hidden), (forward_not_split)),
+ (help "Architecture to generate code for"), (forward_not_split)),
(parameter_option "mcpu",
(help "A deprecated synonym for -mtune"), (hidden), (forward_not_split)),
(switch_option "mfix-and-continue",
@@ -203,8 +202,8 @@ class llvm_gcc_based <string cmd, string in_lang, string E_ext, dag out_lang,
(not_empty "D"), (forward "D"),
(not_empty "arch"), (forward "arch"),
(not_empty "march"), (forward "march"),
- (not_empty "mtune"), (forward "mtune"),
(not_empty "mcpu"), (forward "mcpu"),
+ (not_empty "mtune"), (forward "mtune"),
(not_empty "m"), (forward "m"),
(switch_on "mfix-and-continue"), (forward "mfix-and-continue"),
(switch_on "m32"), (forward "m32"),
@@ -296,9 +295,10 @@ def llc : Tool<
(switch_on "fPIC"), (append_cmd "-relocation-model=pic"),
(switch_on "mdynamic-no-pic"),
(append_cmd "-relocation-model=dynamic-no-pic"),
- (not_empty "march"), (forward_as "march", "-mcpu"),
- (not_empty "mtune"), (forward_as "mtune", "-mcpu"),
+ (not_empty "march"), (forward "march"),
(not_empty "mcpu"), (forward "mcpu"),
+ (and (not_empty "mtune"), (empty "mcpu")),
+ (forward_as "mtune", "-mcpu"),
(not_empty "m"), (forward_transformed_value "m", "ConvertToMAttr"),
(not_empty "Wllc,"), (forward_value "Wllc,")))
]>;