mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Fixed EDOperand to use the operand type, not the
flags, to determine whether or not the operand is a memory operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
fafb890ee2
commit
d8993a3f92
1 file changed
+3
-1
@@ -227,7 +227,9 @@ uint64_t EDOperand::immediateVal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int EDOperand::isMemory() {
|
int EDOperand::isMemory() {
|
||||||
switch (Inst.ThisInstInfo->operandFlags[OpIndex]) {
|
uint8_t operandType = Inst.ThisInstInfo->operandTypes[OpIndex];
|
||||||
|
|
||||||
|
switch (operandType) {
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
case kOperandTypeX86Memory:
|
case kOperandTypeX86Memory:
|
||||||
|
|||||||
Reference in new issue
Block a user