summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMRegisterInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-27 01:56:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-27 01:56:22 +0000
commit184793fc8a9cf6ecc9147468bbcc068f472b8517 (patch)
tree8a3fb921e6c50ca0cd6c77e2ce1c1ce7d6171514 /lib/Target/ARM/ARMRegisterInfo.cpp
parent85263907681d21094cab75547cf4a5f538703fcc (diff)
downloadllvm-184793fc8a9cf6ecc9147468bbcc068f472b8517.tar.gz
llvm-184793fc8a9cf6ecc9147468bbcc068f472b8517.tar.bz2
llvm-184793fc8a9cf6ecc9147468bbcc068f472b8517.tar.xz
Re-apply 56683 with fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMRegisterInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMRegisterInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp
index 7787f43ff6..3a0a57d92d 100644
--- a/lib/Target/ARM/ARMRegisterInfo.cpp
+++ b/lib/Target/ARM/ARMRegisterInfo.cpp
@@ -209,7 +209,8 @@ ARMRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
/// or if frame pointer elimination is disabled.
///
bool ARMRegisterInfo::hasFP(const MachineFunction &MF) const {
- return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
+ const MachineFrameInfo *MFI = MF.getFrameInfo();
+ return NoFramePointerElim || MFI->hasVarSizedObjects();
}
// hasReservedCallFrame - Under normal circumstances, when a frame pointer is