forked from OSchip/llvm-project
parent
4c2131a775
commit
b491f48aba
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue