Support for PSP is gone too.
authorAkira Hatanaka <ahatanak@gmail.com>
Tue, 13 Sep 2011 18:55:33 +0000 (18:55 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Tue, 13 Sep 2011 18:55:33 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139622 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp

index 4d120466d6ada5b69e95d1aeb23dee8030a537f8..26f34f4c77a85375ef2cc430df6ff3f8a321009e 100644 (file)
@@ -64,13 +64,8 @@ static MCAsmInfo *createMipsMCAsmInfo(const Target &T, StringRef TT) {
 static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
                                               CodeModel::Model CM) {
   MCCodeGenInfo *X = new MCCodeGenInfo();
-  if (RM == Reloc::Default) {
-    // Abicall enables PIC by default
-    if (TT.find("psp") != std::string::npos)
-      RM = Reloc::Static;
-    else
-      RM = Reloc::PIC_;
-  }
+  if (RM == Reloc::Default)
+    RM = Reloc::PIC_;
   X->InitMCCodeGenInfo(RM, CM);
   return X;
 }