summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-30 22:02:31 +0000
committerEric Christopher <echristo@gmail.com>2015-01-30 22:02:31 +0000
commitcccae7951ceb13ef51ba87ddf83d2f7eaa23e635 (patch)
treeb84ad978af65fded63b52456555c868ca9317949 /llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
parent6d9fcc38be459f16ed4da465db0db14db06ecdb7 (diff)
downloadbcm5719-llvm-cccae7951ceb13ef51ba87ddf83d2f7eaa23e635.tar.gz
bcm5719-llvm-cccae7951ceb13ef51ba87ddf83d2f7eaa23e635.zip
Use the cached subtargets and remove calls to getSubtarget/getSubtargetImpl
without a Function argument. llvm-svn: 227622
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFrameLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
index e38716ec8c6..b9aeba13fd8 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
@@ -1519,8 +1519,7 @@ restoreCRs(bool isPPC64, bool is31,
const std::vector<CalleeSavedInfo> &CSI, unsigned CSIIndex) {
MachineFunction *MF = MBB.getParent();
- const PPCInstrInfo &TII =
- *static_cast<const PPCInstrInfo *>(MF->getSubtarget().getInstrInfo());
+ const PPCInstrInfo &TII = *MF->getSubtarget<PPCSubtarget>().getInstrInfo();
DebugLoc DL;
unsigned RestoreOp, MoveReg;
OpenPOWER on IntegriCloud