mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[AVR] Enable the frame pointer for all functions
This is a temporary measure while we figure out a way to get the frame pointer working correctly. llvm-svn: 301881
This commit is contained in:
parent
25e6d2b2ce
commit
9b90c0caaf
@ -216,8 +216,9 @@ void AVRFrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
bool AVRFrameLowering::hasFP(const MachineFunction &MF) const {
|
||||
const AVRMachineFunctionInfo *FuncInfo = MF.getInfo<AVRMachineFunctionInfo>();
|
||||
|
||||
return (FuncInfo->getHasSpills() || FuncInfo->getHasAllocas() ||
|
||||
FuncInfo->getHasStackArgs());
|
||||
// TODO: We do not always need a frame pointer.
|
||||
// This can be optimised.
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AVRFrameLowering::spillCalleeSavedRegisters(
|
||||
|
Loading…
Reference in New Issue
Block a user