specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104066
91177308-0d34-0410-b5e6-
96231b3b80d8
bool DisableFramePointerElim(const MachineFunction &MF) {
// Check to see if we should eliminate non-leaf frame pointers and then
// check to see if we should eliminate all frame pointers.
bool DisableFramePointerElim(const MachineFunction &MF) {
// Check to see if we should eliminate non-leaf frame pointers and then
// check to see if we should eliminate all frame pointers.
- if (NoFramePointerElimNonLeaf) {
+ if (NoFramePointerElimNonLeaf && !NoFramePointerElim) {
const MachineFrameInfo *MFI = MF.getFrameInfo();
return MFI->hasCalls();
}
const MachineFrameInfo *MFI = MF.getFrameInfo();
return MFI->hasCalls();
}