Implement -disable-non-leaf-fp-elim which disable frame pointer elimination
[oota-llvm.git] / lib / Target / SystemZ / SystemZRegisterInfo.cpp
index 5e325c08c36091954522fe7efabc81524bd62347..638fd17c9953ee05e32b791a9bb1482496bfed35 100644 (file)
@@ -77,7 +77,7 @@ BitVector SystemZRegisterInfo::getReservedRegs(const MachineFunction &MF) const
 /// allocas or if frame pointer elimination is disabled.
 bool SystemZRegisterInfo::hasFP(const MachineFunction &MF) const {
   const MachineFrameInfo *MFI = MF.getFrameInfo();
-  return NoFramePointerElim || MFI->hasVarSizedObjects();
+  return DisableFramePointerElim(MF) || MFI->hasVarSizedObjects();
 }
 
 void SystemZRegisterInfo::