Support for PSP is gone too.

llvm-svn: 139622
This commit is contained in:
Akira Hatanaka 2011-09-13 18:55:33 +00:00
parent 4c2131a775
commit b491f48aba
1 changed files with 2 additions and 7 deletions

View 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;
}