diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-28 14:33:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-28 14:33:28 +0000 |
commit | b30e66b82c8f68825153035af076dc09a24e6ab4 (patch) | |
tree | 1e22fa9a9faae7d1cb9c11fa4f5734e35aa61c0a /llvm/lib/Target/Mips/MipsSEInstrInfo.cpp | |
parent | 6f7c280a3ddefab85f0ff436c94e7f33a075abec (diff) | |
download | bcm5719-llvm-b30e66b82c8f68825153035af076dc09a24e6ab4.tar.gz bcm5719-llvm-b30e66b82c8f68825153035af076dc09a24e6ab4.zip |
Convert more cases to isPositionIndependent(). NFC.
llvm-svn: 274021
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEInstrInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp b/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp index 1ccda0bdd5a..841241de66c 100644 --- a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp @@ -26,8 +26,7 @@ using namespace llvm; MipsSEInstrInfo::MipsSEInstrInfo(const MipsSubtarget &STI) - : MipsInstrInfo(STI, STI.getRelocationModel() == Reloc::PIC_ ? Mips::B - : Mips::J), + : MipsInstrInfo(STI, STI.isPositionIndependent() ? Mips::B : Mips::J), RI() {} const MipsRegisterInfo &MipsSEInstrInfo::getRegisterInfo() const { @@ -720,7 +719,7 @@ void MipsSEInstrInfo::expandEhReturn(MachineBasicBlock &MBB, // addu $sp, $sp, $v1 // jr $ra (via RetRA) const TargetMachine &TM = MBB.getParent()->getTarget(); - if (TM.getRelocationModel() == Reloc::PIC_) + if (TM.isPositionIndependent()) BuildMI(MBB, I, I->getDebugLoc(), get(ADDU), T9) .addReg(TargetReg) .addReg(ZERO); |