Put Is64BitMemOperand into !defined(NDEBUG) for now.
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 21 Mar 2012 14:09:26 +0000 (14:09 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 21 Mar 2012 14:09:26 +0000 (14:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153185 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp

index 0d8ee174d5146b0fddf13c9c47465cb5f6302b51..80990e5822bd7d12d838cd3180a6be188c04c6a0 100644 (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.