Changes commited for Nate Begeman:
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index 051ebf07b4b326b34c27051f441455b69260b144..3022b5225e095b8437edd42084db4b01ebe82a46 100644 (file)
@@ -21,13 +21,20 @@ using namespace llvm;
 // Command-line options that tend to be useful on more than one back-end.
 //
 
-namespace llvm { 
+namespace llvm {
   bool PrintMachineCode;
+  bool NoFramePointerElim;
 };
 namespace {
   cl::opt<bool, true> PrintCode("print-machineinstrs",
     cl::desc("Print generated machine code"),
     cl::location(PrintMachineCode), cl::init(false));
+
+  cl::opt<bool, true> 
+    DisableFPElim("disable-fp-elim",
+                  cl::desc("Disable frame pointer elimination optimization"),
+                  cl::location(NoFramePointerElim),
+                  cl::init(false));
 };
 
 //---------------------------------------------------------------------------
@@ -38,10 +45,11 @@ TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
                              unsigned char PtrSize, unsigned char PtrAl,
                              unsigned char DoubleAl, unsigned char FloatAl,
                              unsigned char LongAl, unsigned char IntAl,
-                             unsigned char ShortAl, unsigned char ByteAl)
+                             unsigned char ShortAl, unsigned char ByteAl,
+                             unsigned char BoolAl)
   : Name(name), DataLayout(name, LittleEndian,
                            PtrSize, PtrAl, DoubleAl, FloatAl, LongAl,
-                           IntAl, ShortAl, ByteAl) {
+                           IntAl, ShortAl, ByteAl, BoolAl) {
   IL = il ? il : new DefaultIntrinsicLowering();
 }
 TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,