forked from OSchip/llvm-project
parent
559c546453
commit
99cb63029a
|
@ -85,7 +85,7 @@ ARMRegisterInfo::ARMRegisterInfo(const TargetInstrInfo &tii,
|
||||||
const ARMSubtarget &sti)
|
const ARMSubtarget &sti)
|
||||||
: ARMGenRegisterInfo(ARM::ADJCALLSTACKDOWN, ARM::ADJCALLSTACKUP),
|
: ARMGenRegisterInfo(ARM::ADJCALLSTACKDOWN, ARM::ADJCALLSTACKUP),
|
||||||
TII(tii), STI(sti),
|
TII(tii), STI(sti),
|
||||||
FramePtr(STI.useThumbBacktraces() || STI.isThumb() ? ARM::R7 : ARM::R11) {
|
FramePtr((STI.useThumbBacktraces() || STI.isThumb()) ? ARM::R7 : ARM::R11) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ARMRegisterInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
|
bool ARMRegisterInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||||
|
@ -1472,7 +1472,7 @@ unsigned ARMRegisterInfo::getRARegister() const {
|
||||||
|
|
||||||
unsigned ARMRegisterInfo::getFrameRegister(MachineFunction &MF) const {
|
unsigned ARMRegisterInfo::getFrameRegister(MachineFunction &MF) const {
|
||||||
if (STI.isTargetDarwin() || hasFP(MF))
|
if (STI.isTargetDarwin() || hasFP(MF))
|
||||||
return STI.useThumbBacktraces() || STI.isThumb() ? ARM::R7 : ARM::R11;
|
return (STI.useThumbBacktraces() || STI.isThumb()) ? ARM::R7 : ARM::R11;
|
||||||
else
|
else
|
||||||
return ARM::SP;
|
return ARM::SP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue