forked from OSchip/llvm-project
It is not necessary to search for mipsallegrex in target triple string.
llvm-svn: 139607
This commit is contained in:
parent
c3c60a0882
commit
b0e99ef8f0
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Reference in New Issue