[llvm-commits] [llvm] r102158 - /llvm/trunk/tools/edis/EDOperand.cpp

Sean Callanan scallanan at apple.com
Thu Apr 22 18:56:36 PDT 2010


Author: spyffe
Date: Thu Apr 22 20:56:36 2010
New Revision: 102158

URL: http://llvm.org/viewvc/llvm-project?rev=102158&view=rev
Log:
Fixed EDOperand to use the operand type, not the
flags, to determine whether or not the operand is
a memory operand.

Modified:
    llvm/trunk/tools/edis/EDOperand.cpp

Modified: llvm/trunk/tools/edis/EDOperand.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/edis/EDOperand.cpp?rev=102158&r1=102157&r2=102158&view=diff
==============================================================================
--- llvm/trunk/tools/edis/EDOperand.cpp (original)
+++ llvm/trunk/tools/edis/EDOperand.cpp Thu Apr 22 20:56:36 2010
@@ -227,7 +227,9 @@
 }
 
 int EDOperand::isMemory() {
-  switch (Inst.ThisInstInfo->operandFlags[OpIndex]) {
+  uint8_t operandType = Inst.ThisInstInfo->operandTypes[OpIndex];
+    
+  switch (operandType) {
   default:
     return 0;
   case kOperandTypeX86Memory:





More information about the llvm-commits mailing list