[llvm-commits] [llvm] r116475 - /llvm/trunk/tools/llvmc/src/Base.td.in
Mikhail Glushenkov
foldr at codedgers.com
Thu Oct 14 04:22:06 PDT 2010
Author: foldr
Date: Thu Oct 14 06:22:06 2010
New Revision: 116475
URL: http://llvm.org/viewvc/llvm-project?rev=116475&view=rev
Log:
Forward -march correctly.
Also includes some cosmetic changes.
Modified:
llvm/trunk/tools/llvmc/src/Base.td.in
Modified: llvm/trunk/tools/llvmc/src/Base.td.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/src/Base.td.in?rev=116475&r1=116474&r2=116475&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/src/Base.td.in (original)
+++ llvm/trunk/tools/llvmc/src/Base.td.in Thu Oct 14 06:22:06 2010
@@ -165,7 +165,8 @@
// 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_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 @@
(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 @@
(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
More information about the llvm-commits
mailing list