Spell out `NoFramePointerElim' for readability.

llvm-svn: 14299
This commit is contained in:
Misha Brukman 2004-06-21 21:17:44 +00:00
parent 5cb198a9c6
commit c22299d21b
3 changed files with 5 additions and 4 deletions

View File

@ -20,7 +20,7 @@ namespace llvm {
/// these should go in their own header eventually.
///
extern bool PrintMachineCode;
extern bool NoFPElim;
extern bool NoFramePointerElim;
class TargetMachine;
class Module;

View File

@ -23,7 +23,7 @@ using namespace llvm;
namespace llvm {
bool PrintMachineCode;
bool NoFPElim;
bool NoFramePointerElim;
};
namespace {
@ -34,7 +34,8 @@ 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));
};
//---------------------------------------------------------------------------

View File

@ -333,7 +333,7 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr* MI,
// if frame pointer elimination is disabled.
//
static bool hasFP(MachineFunction &MF) {
return NoFPElim || MF.getFrameInfo()->hasVarSizedObjects();
return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
}
void X86RegisterInfo::