diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-28 00:31:13 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-28 00:31:13 +0000 |
| commit | c5d7ae4d64d0bba62fc63133fe6af2d9051c08e5 (patch) | |
| tree | 3b3f4c1a7dc3e07762b1e5663fc655edb0165b0c /llvm/tools/llvmc/src/Base.td.in | |
| parent | 7283b8d18cf4657be0c9277322ba0a259501a1d3 (diff) | |
| download | bcm5719-llvm-c5d7ae4d64d0bba62fc63133fe6af2d9051c08e5.tar.gz bcm5719-llvm-c5d7ae4d64d0bba62fc63133fe6af2d9051c08e5.zip | |
llvmc: First stab at better -march handling.
llvm-svn: 120230
Diffstat (limited to 'llvm/tools/llvmc/src/Base.td.in')
| -rw-r--r-- | llvm/tools/llvmc/src/Base.td.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvmc/src/Base.td.in b/llvm/tools/llvmc/src/Base.td.in index c1898a694e6..efb259fbe01 100644 --- a/llvm/tools/llvmc/src/Base.td.in +++ b/llvm/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"), |

