From a29b5bd2a89ee7f635485a2d89442262fa504b48 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Wed, 21 Mar 2012 14:09:26 +0000 Subject: [PATCH] Put Is64BitMemOperand into !defined(NDEBUG) for now. llvm-svn: 153185 --- llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp index 0d8ee174d514..80990e5822bd 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp @@ -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.