Put Is64BitMemOperand into !defined(NDEBUG) for now.

llvm-svn: 153185
This commit is contained in:
Joerg Sonnenberger 2012-03-21 14:09:26 +00:00
parent bc1066734f
commit a29b5bd2a8
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,7 @@ static bool Is32BitMemOperand(const MCInst &MI, unsigned Op) {
/// Is64BitMemOperand - Return true if the specified instruction has
/// a 64-bit memory operand. Op specifies the operand # of the memoperand.
#ifndef NDEBUG
static bool Is64BitMemOperand(const MCInst &MI, unsigned Op) {
const MCOperand &BaseReg = MI.getOperand(Op+X86::AddrBaseReg);
const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg);
@ -186,6 +187,7 @@ static bool Is64BitMemOperand(const MCInst &MI, unsigned Op) {
return true;
return false;
}
#endif
/// Is16BitMemOperand - Return true if the specified instruction has
/// a 16-bit memory operand. Op specifies the operand # of the memoperand.