summaryrefslogtreecommitdiff
path: root/tools/llvmc/src/Base.td.in
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-28 00:31:13 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-28 00:31:13 +0000
commit325f69da3d5cc9e6a874bc956f59410636273fad (patch)
treeeb7bb197d5b2cc986d3cac54668fece4c69c090d /tools/llvmc/src/Base.td.in
parent94c5ae08750f314bc3cf1bf882b686244a3927d9 (diff)
downloadllvm-325f69da3d5cc9e6a874bc956f59410636273fad.tar.gz
llvm-325f69da3d5cc9e6a874bc956f59410636273fad.tar.bz2
llvm-325f69da3d5cc9e6a874bc956f59410636273fad.tar.xz
llvmc: First stab at better -march handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/src/Base.td.in')
-rw-r--r--tools/llvmc/src/Base.td.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in
index c1898a694e..efb259fbe0 100644
--- a/tools/llvmc/src/Base.td.in
+++ b/tools/llvmc/src/Base.td.in
@@ -46,8 +46,8 @@ def OptList : OptionList<[
(help "Choose linker (possible values: gcc, g++)")),
(parameter_option "mtune",
(help "Target a specific CPU type"), (forward_not_split)),
- (parameter_option "march",
- (help "Architecture to generate code for"), (forward_not_split)),
+ (parameter_list_option "march",
+ (help "Generate code for the specified machine type")),
(parameter_option "mcpu",
(help "A deprecated synonym for -mtune"), (hidden), (forward_not_split)),
(switch_option "mfix-and-continue",
@@ -295,7 +295,8 @@ 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 "march"),
+ (not_empty "march"), (forward_transformed_value
+ "march", "ConvertMArchToMAttr"),
(not_empty "mcpu"), (forward "mcpu"),
(and (not_empty "mtune"), (empty "mcpu")),
(forward_as "mtune", "-mcpu"),