summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsFrameLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-29 23:27:36 +0000
committerEric Christopher <echristo@gmail.com>2015-01-29 23:27:36 +0000
commit96e72c6ab168914d2323e15579a2593edb8b6515 (patch)
tree090851819b44d9f22277657efbc3dc502f23c73a /llvm/lib/Target/Mips/MipsFrameLowering.cpp
parente4b705bc1cc6140ded88c3ac685f4398b80888d0 (diff)
downloadbcm5719-llvm-96e72c6ab168914d2323e15579a2593edb8b6515.tar.gz
bcm5719-llvm-96e72c6ab168914d2323e15579a2593edb8b6515.zip
Remove most of the TargetMachine::getSubtarget/getSubtargetImpl
calls that don't take a Function argument from Mips. Notable exceptions: the AsmPrinter and MipsTargetObjectFile. The latter needs to be fixed, and the former will be fixed when the general AsmPrinter changes happen. llvm-svn: 227512
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFrameLowering.cpp b/llvm/lib/Target/Mips/MipsFrameLowering.cpp
index 3014a0d9534..8b8b0194eba 100644
--- a/llvm/lib/Target/Mips/MipsFrameLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsFrameLowering.cpp
@@ -100,7 +100,7 @@ bool MipsFrameLowering::hasFP(const MachineFunction &MF) const {
uint64_t MipsFrameLowering::estimateStackSize(const MachineFunction &MF) const {
const MachineFrameInfo *MFI = MF.getFrameInfo();
- const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
+ const TargetRegisterInfo &TRI = *STI.getRegisterInfo();
int64_t Offset = 0;
OpenPOWER on IntegriCloud