[llvm-commits] [llvm] r68127 - /llvm/trunk/tools/llvmc/plugins/Base/Base.td
Mikhail Glushenkov
foldr at codedgers.com
Tue Mar 31 11:33:55 PDT 2009
Author: foldr
Date: Tue Mar 31 13:33:54 2009
New Revision: 68127
URL: http://llvm.org/viewvc/llvm-project?rev=68127&view=rev
Log:
Do not pass '-relocation-model=pic' to llc.
Does not work well on 32 bit targets. Bug reported by Albert Graef.
This patch also adds new "-Wllc,option" syntax to pass options to llc.
Modified:
llvm/trunk/tools/llvmc/plugins/Base/Base.td
Modified: llvm/trunk/tools/llvmc/plugins/Base/Base.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/plugins/Base/Base.td?rev=68127&r1=68126&r2=68127&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Base/Base.td (original)
+++ llvm/trunk/tools/llvmc/plugins/Base/Base.td Tue Mar 31 13:33:54 2009
@@ -38,6 +38,8 @@
(help "Add a directory to include path")),
(prefix_list_option "Wa,",
(help "Pass options to assembler")),
+ (prefix_list_option "Wllc,",
+ (help "Pass options to llc")),
(prefix_list_option "L",
(help "Add a directory to link path")),
(prefix_list_option "l",
@@ -113,8 +115,10 @@
[(in_language "llvm-bitcode"),
(out_language "assembler"),
(output_suffix "s"),
- (cmd_line "llc -relocation-model=pic -f $INFILE -o $OUTFILE"),
- (actions (case (switch_on "S"), (stop_compilation)))
+ (cmd_line "llc -f $INFILE -o $OUTFILE"),
+ (actions (case
+ (switch_on "S"), (stop_compilation),
+ (not_empty "Wllc,"), (unpack_values "Wllc,")))
]>;
// Base class for linkers
More information about the llvm-commits
mailing list