Have only one definition of X86AddrNumOperands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2009-03-28 18:55:31 +00:00
parent b449a68146
commit da945e3bb2
5 changed files with 2 additions and 9 deletions

View File

@ -32,9 +32,6 @@
#include "llvm/Target/TargetOptions.h"
using namespace llvm;
// FIXME: This should be some header
static const int X86AddrNumOperands = 4;
STATISTIC(NumEmitted, "Number of machine instructions emitted");
namespace {

View File

@ -616,7 +616,6 @@ void FPS::handleZeroArgFP(MachineBasicBlock::iterator &I) {
/// handleOneArgFP - fst <mem>, ST(0)
///
void FPS::handleOneArgFP(MachineBasicBlock::iterator &I) {
const int X86AddrNumOperands = 4;
MachineInstr *MI = I;
unsigned NumOps = MI->getDesc().getNumOperands();
assert((NumOps == X86AddrNumOperands + 1 || NumOps == 1) &&

View File

@ -41,8 +41,6 @@
#include "llvm/Support/CommandLine.h"
using namespace llvm;
const int X86AddrNumOperands = 4;
static cl::opt<bool>
DisableMMX("disable-mmx", cl::Hidden, cl::desc("Disable use of MMX"));

View File

@ -31,9 +31,6 @@
using namespace llvm;
// FIXME: This should be some header
static const int X86AddrNumOperands = 4;
namespace {
cl::opt<bool>
NoFusing("disable-spill-fusing",

View File

@ -243,6 +243,8 @@ namespace X86II {
};
}
const int X86AddrNumOperands = 4;
inline static bool isScale(const MachineOperand &MO) {
return MO.isImm() &&
(MO.getImm() == 1 || MO.getImm() == 2 ||