Spell out `NoFramePointerElim' for readability.
authorMisha Brukman <brukman+llvm@gmail.com>
Mon, 21 Jun 2004 21:17:44 +0000 (21:17 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Mon, 21 Jun 2004 21:17:44 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14299 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachineImpls.h
lib/Target/TargetMachine.cpp
lib/Target/X86/X86RegisterInfo.cpp

index 92f799278a328e9874adf5c4524f2282c465e73b..e70c9b72fe1fd6d884fcbdc2e7e776dcb9b63d50 100644 (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;
index f5bbdd15d5eca26f4a586a58bd57e513656241f4..8ed0639a96afbd84a44578baad7d8b068b623e87 100644 (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));
 };
 
 //---------------------------------------------------------------------------
index 150ed749a1bba95f206caa0e7f6ee63ac9082cba..8be00312c0a209f914a9ec7eab80225abd021d89 100644 (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::