diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-10-14 11:22:06 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-10-14 11:22:06 +0000 |
commit | dea1c5b5d3f06af6d0556cb8bd5b69af70193a05 (patch) | |
tree | 3e9df0fc173a93944616f804d064719de04ed2c3 /tools | |
parent | eae8439771a9dafd09e32026ca42bb81cceb2af1 (diff) | |
download | external_llvm-dea1c5b5d3f06af6d0556cb8bd5b69af70193a05.zip external_llvm-dea1c5b5d3f06af6d0556cb8bd5b69af70193a05.tar.gz external_llvm-dea1c5b5d3f06af6d0556cb8bd5b69af70193a05.tar.bz2 |
Forward -march correctly.
Also includes some cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvmc/src/Base.td.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in index 09960dd..a53ac9e 100644 --- a/tools/llvmc/src/Base.td.in +++ b/tools/llvmc/src/Base.td.in @@ -165,7 +165,8 @@ def Preprocess : OptionPreprocessor< // Tools class llvm_gcc_based <string cmd, string in_lang, - string E_ext, string out_lang, string out_ext> : Tool< + string E_ext, list<string> out_lang, + string out_ext> : Tool< [(in_language in_lang), (out_language out_lang), (output_suffix out_ext), @@ -221,10 +222,10 @@ class llvm_gcc_based <string cmd, string in_lang, ]>; class llvm_gcc_comp_based <string cmd, string in_lang, string E_ext> -: llvm_gcc_based<cmd, in_lang, E_ext, "llvm-bitcode", "bc">; +: llvm_gcc_based<cmd, in_lang, E_ext, ["llvm-bitcode", "object-code"], "bc">; class llvm_gcc_pch_based <string cmd, string in_lang, string E_ext> -: llvm_gcc_based<cmd, in_lang, E_ext, "precompiled-header", "gch">; +: llvm_gcc_based<cmd, in_lang, E_ext, ["precompiled-header"], "gch">; def llvm_gcc_c : llvm_gcc_comp_based <"@LLVMGCCCOMMAND@ -x c", "c", "i">; @@ -294,7 +295,7 @@ 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 "mtune", "-mcpu"), + (not_empty "march"), (forward_as "march", "-mcpu"), (not_empty "mtune"), (forward_as "mtune", "-mcpu"), (not_empty "mcpu"), (forward "mcpu"), (not_empty "m"), (forward_transformed_value "m", "ConvertToMAttr"), @@ -375,7 +376,7 @@ def LanguageMap : LanguageMap<[ (lang_to_suffixes "object-code", ["o", "*empty*"]), (lang_to_suffixes "static-library", ["a", "lib"]), (lang_to_suffixes "dynamic-library", ["so", "dylib", "dll"]), - (lang_to_suffixes "executable", ["out"]) + (lang_to_suffixes "executable", "out") ]>; // Compilation graph |