llvm.org GIT mirror llvm / 267bfb5
Fix a bug in getFrameRegister. Reported by Raul Herbster. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36262 91177308-0d34-0410-b5e6-96231b3b80d8 Lauro Ramos Venancio 13 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
14731473 }
14741474
14751475 unsigned ARMRegisterInfo::getFrameRegister(MachineFunction &MF) const {
1476 return STI.useThumbBacktraces() ? ARM::R7 : ARM::R11;
1476 if (STI.isTargetDarwin() || hasFP(MF))
1477 return STI.useThumbBacktraces() ? ARM::R7 : ARM::R11;
1478 else
1479 return ARM::SP;
14771480 }
14781481
14791482 unsigned ARMRegisterInfo::getEHExceptionRegister() const {