diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-06-26 19:08:49 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-06-26 19:08:49 +0000 |
commit | 842cfc91f29f6446bb675891f7abc127f9fbe768 (patch) | |
tree | b65deaab8766fb490db419393e963eea97691190 /lib/Target | |
parent | 9a308df027b60057d0fe3ba7a3ee9648f6677879 (diff) | |
download | external_llvm-842cfc91f29f6446bb675891f7abc127f9fbe768.zip external_llvm-842cfc91f29f6446bb675891f7abc127f9fbe768.tar.gz external_llvm-842cfc91f29f6446bb675891f7abc127f9fbe768.tar.bz2 |
[mips] Do not emit ".option pic0" if target is mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/Mips/MipsAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp index bab70af..c037c05 100644 --- a/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/MipsAsmPrinter.cpp @@ -562,7 +562,7 @@ void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) { if (OutStreamer.hasRawTextSupport()) { OutStreamer.EmitRawText(StringRef("\t.abicalls")); Reloc::Model RM = Subtarget->getRelocationModel(); - if (RM == Reloc::Static) + if (RM == Reloc::Static && !Subtarget->hasMips64()) OutStreamer.EmitRawText(StringRef("\t.option\tpic0")); } |