[llvm-commits] [llvm] r153185 - /llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp

Joerg Sonnenberger joerg at bec.de
Wed Mar 21 07:09:26 PDT 2012


Author: joerg
Date: Wed Mar 21 09:09:26 2012
New Revision: 153185

URL: http://llvm.org/viewvc/llvm-project?rev=153185&view=rev
Log:
Put Is64BitMemOperand into !defined(NDEBUG) for now.

Modified:
    llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp?rev=153185&r1=153184&r2=153185&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp Wed Mar 21 09:09:26 2012
@@ -175,6 +175,7 @@
 
 /// 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 @@
     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.





More information about the llvm-commits mailing list