Implement `NoFPElim' in a target-agnostic fashion so it can be shared.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-06-21 21:08:45 +00:00
parent b41dabd8ad
commit 0fb5a66760

View File

@ -11,9 +11,9 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/Target/TargetMachine.h"
#include "llvm/Type.h"
#include "llvm/CodeGen/IntrinsicLowering.h"
#include "llvm/Target/TargetMachine.h"
#include "Support/CommandLine.h"
using namespace llvm;
@ -23,11 +23,18 @@ using namespace llvm;
namespace llvm {
bool PrintMachineCode;
bool NoFPElim;
};
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(NoFPElim), cl::init(false));
};
//---------------------------------------------------------------------------