From 11c9edb2956fcd1c9799f17c28ad514396b324b1 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Thu, 14 Oct 2010 11:22:06 +0000 Subject: [PATCH] Forward -march correctly. Also includes some cosmetic changes. llvm-svn: 116475 --- llvm/tools/llvmc/src/Base.td.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/llvm/tools/llvmc/src/Base.td.in b/llvm/tools/llvmc/src/Base.td.in index 09960ddc764b..a53ac9e65cc0 100644 --- a/llvm/tools/llvmc/src/Base.td.in +++ b/llvm/tools/llvmc/src/Base.td.in @@ -165,7 +165,8 @@ def Preprocess : OptionPreprocessor< // Tools class llvm_gcc_based : Tool< + string E_ext, list 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 ; class llvm_gcc_comp_based -: llvm_gcc_based; +: llvm_gcc_based; class llvm_gcc_pch_based -: llvm_gcc_based; +: llvm_gcc_based; 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