summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-08 18:18:50 +0000
committerEric Christopher <echristo@gmail.com>2015-01-08 18:18:50 +0000
commit09455d94bfe8cd2d35587bfa6369cae3cc40551a (patch)
treea370fc2966f9548938aefcf23a12ccadfd35ba73 /llvm/lib/Target/Mips
parentd716121888ffea1550d0dc0eb6ee5fcc48bb3ea0 (diff)
downloadbcm5719-llvm-09455d94bfe8cd2d35587bfa6369cae3cc40551a.tar.gz
bcm5719-llvm-09455d94bfe8cd2d35587bfa6369cae3cc40551a.zip
This routine is in InstrInfo, there's no need to access it again.
llvm-svn: 225456
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r--llvm/lib/Target/Mips/MipsSEInstrInfo.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp b/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
index 19e5e925368..7341817ef67 100644
--- a/llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud