It is not necessary to search for mipsallegrex in target triple string.
authorAkira Hatanaka <ahatanak@gmail.com>
Tue, 13 Sep 2011 17:35:28 +0000 (17:35 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Tue, 13 Sep 2011 17:35:28 +0000 (17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139607 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp

index 7ea7498bcb2f4654b49202f5bee6d7b3c2035718..4d120466d6ada5b69e95d1aeb23dee8030a537f8 100644 (file)
@@ -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_;