/// these should go in their own header eventually.
///
extern bool PrintMachineCode;
- extern bool NoFPElim;
+ extern bool NoFramePointerElim;
class TargetMachine;
class Module;
namespace llvm {
bool PrintMachineCode;
- bool NoFPElim;
+ bool NoFramePointerElim;
};
namespace {
cl::opt<bool, true>
DisableFPElim("disable-fp-elim",
cl::desc("Disable frame pointer elimination optimization"),
- cl::location(NoFPElim), cl::init(false));
+ cl::location(NoFramePointerElim),
+ cl::init(false));
};
//---------------------------------------------------------------------------
// if frame pointer elimination is disabled.
//
static bool hasFP(MachineFunction &MF) {
- return NoFPElim || MF.getFrameInfo()->hasVarSizedObjects();
+ return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
}
void X86RegisterInfo::