From: Eric Christopher Date: Thu, 8 Jan 2015 18:18:50 +0000 (+0000) Subject: This routine is in InstrInfo, there's no need to access it again. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=78a726e36dbcc7eb41b771c3eb83cc431418790d;p=oota-llvm.git This routine is in InstrInfo, there's no need to access it again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225456 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsSEInstrInfo.cpp b/lib/Target/Mips/MipsSEInstrInfo.cpp index 19e5e925368..7341817ef67 100644 --- a/lib/Target/Mips/MipsSEInstrInfo.cpp +++ b/lib/Target/Mips/MipsSEInstrInfo.cpp @@ -622,18 +622,13 @@ void MipsSEInstrInfo::expandEhReturn(MachineBasicBlock &MBB, // jr $ra (via RetRA) const TargetMachine &TM = MBB.getParent()->getTarget(); if (TM.getRelocationModel() == Reloc::PIC_) - BuildMI(MBB, I, I->getDebugLoc(), - TM.getSubtargetImpl()->getInstrInfo()->get(ADDU), T9) + BuildMI(MBB, I, I->getDebugLoc(), get(ADDU), T9) .addReg(TargetReg) .addReg(ZERO); - BuildMI(MBB, I, I->getDebugLoc(), - TM.getSubtargetImpl()->getInstrInfo()->get(ADDU), RA) + BuildMI(MBB, I, I->getDebugLoc(), get(ADDU), RA) .addReg(TargetReg) .addReg(ZERO); - BuildMI(MBB, I, I->getDebugLoc(), - TM.getSubtargetImpl()->getInstrInfo()->get(ADDU), SP) - .addReg(SP) - .addReg(OffsetReg); + BuildMI(MBB, I, I->getDebugLoc(), get(ADDU), SP).addReg(SP).addReg(OffsetReg); expandRetRA(MBB, I); }