summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-06-22 18:38:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-06-22 18:38:48 +0000
commit3d75d6af57722ed6caf92d0fde8b452f20c909ac (patch)
treea59b89891a8c9c65f1127fba8293ee600b0fccdc /llvm/lib
parent86837616f79b0faef24cd81a86ccde14f27643cb (diff)
downloadbcm5719-llvm-3d75d6af57722ed6caf92d0fde8b452f20c909ac.tar.gz
bcm5719-llvm-3d75d6af57722ed6caf92d0fde8b452f20c909ac.zip
hasFP should return true if frame address is taken.
llvm-svn: 73893
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMRegisterInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
index bbc13001ae5..522f65b4bf3 100644
--- a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp
@@ -497,7 +497,9 @@ ARMRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
///
bool ARMRegisterInfo::hasFP(const MachineFunction &MF) const {
const MachineFrameInfo *MFI = MF.getFrameInfo();
- return NoFramePointerElim || MFI->hasVarSizedObjects();
+ return (NoFramePointerElim ||
+ MFI->hasVarSizedObjects() ||
+ MFI->isFrameAddressTaken());
}
// hasReservedCallFrame - Under normal circumstances, when a frame pointer is
OpenPOWER on IntegriCloud