From 78a726e36dbcc7eb41b771c3eb83cc431418790d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 8 Jan 2015 18:18:50 +0000 Subject: [PATCH] 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 --- lib/Target/Mips/MipsSEInstrInfo.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); } -- 2.34.1