[llvm-commits] [llvm] r139607 - /llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
Akira Hatanaka
ahatanak at gmail.com
Tue Sep 13 10:35:28 PDT 2011
Author: ahatanak
Date: Tue Sep 13 12:35:28 2011
New Revision: 139607
URL: http://llvm.org/viewvc/llvm-project?rev=139607&view=rev
Log:
It is not necessary to search for mipsallegrex in target triple string.
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp?rev=139607&r1=139606&r2=139607&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp Tue Sep 13 12:35:28 2011
@@ -66,8 +66,7 @@
MCCodeGenInfo *X = new MCCodeGenInfo();
if (RM == Reloc::Default) {
// Abicall enables PIC by default
- if (TT.find("mipsallegrex") != std::string::npos ||
- TT.find("psp") != std::string::npos)
+ if (TT.find("psp") != std::string::npos)
RM = Reloc::Static;
else
RM = Reloc::PIC_;
More information about the llvm-commits
mailing list