From: Akira Hatanaka Date: Tue, 13 Sep 2011 17:35:28 +0000 (+0000) Subject: It is not necessary to search for mipsallegrex in target triple string. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2152307933d057a2dbc65c17459659e735754671;p=oota-llvm.git It is not necessary to search for mipsallegrex in target triple string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139607 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp b/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp index 7ea7498bcb2..4d120466d6a 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp @@ -66,8 +66,7 @@ static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM, 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_;