mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Put Is64BitMemOperand into !defined(NDEBUG) for now.
llvm-svn: 153185
This commit is contained in:
parent
ad9527ea4c
commit
4df2738e5f
@ -175,6 +175,7 @@ static bool Is32BitMemOperand(const MCInst &MI, unsigned Op) {
|
|||||||
|
|
||||||
/// Is64BitMemOperand - Return true if the specified instruction has
|
/// Is64BitMemOperand - Return true if the specified instruction has
|
||||||
/// a 64-bit memory operand. Op specifies the operand # of the memoperand.
|
/// a 64-bit memory operand. Op specifies the operand # of the memoperand.
|
||||||
|
#ifndef NDEBUG
|
||||||
static bool Is64BitMemOperand(const MCInst &MI, unsigned Op) {
|
static bool Is64BitMemOperand(const MCInst &MI, unsigned Op) {
|
||||||
const MCOperand &BaseReg = MI.getOperand(Op+X86::AddrBaseReg);
|
const MCOperand &BaseReg = MI.getOperand(Op+X86::AddrBaseReg);
|
||||||
const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg);
|
const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg);
|
||||||
@ -186,6 +187,7 @@ static bool Is64BitMemOperand(const MCInst &MI, unsigned Op) {
|
|||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Is16BitMemOperand - Return true if the specified instruction has
|
/// Is16BitMemOperand - Return true if the specified instruction has
|
||||||
/// a 16-bit memory operand. Op specifies the operand # of the memoperand.
|
/// a 16-bit memory operand. Op specifies the operand # of the memoperand.
|
||||||
|
Loading…
Reference in New Issue
Block a user