diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-31 18:33:54 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-31 18:33:54 +0000 |
commit | eccc5967bfdfd2fed96c34f52ec2e346a072dc48 (patch) | |
tree | c1f95f293a2db643e65e665cdbce299c93234388 /llvm/tools/llvmc | |
parent | 1d249d984c10b2fb3d5b9867ba6cc83ab5d77350 (diff) | |
download | bcm5719-llvm-eccc5967bfdfd2fed96c34f52ec2e346a072dc48.tar.gz bcm5719-llvm-eccc5967bfdfd2fed96c34f52ec2e346a072dc48.zip |
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.
llvm-svn: 68127
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r-- | llvm/tools/llvmc/plugins/Base/Base.td | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/tools/llvmc/plugins/Base/Base.td b/llvm/tools/llvmc/plugins/Base/Base.td index 18372de617e..ec6f87cfc7c 100644 --- a/llvm/tools/llvmc/plugins/Base/Base.td +++ b/llvm/tools/llvmc/plugins/Base/Base.td @@ -38,6 +38,8 @@ def OptList : OptionList<[ (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 @@ def llc : Tool< [(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 |