MCAsmParser/X86: Represent absolute memory operands as CodeGen does, with scale

== 1.

llvm-svn: 95137
This commit is contained in:
Daniel Dunbar 2010-02-02 21:44:16 +00:00
parent d28d6db735
commit 3184f22447
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ struct X86Operand : public MCParsedAsmOperand {
bool isAbsMem() const {
return Kind == Memory && !getMemSegReg() && !getMemBaseReg() &&
!getMemIndexReg() && !getMemScale();
!getMemIndexReg() && getMemScale() == 1;
}
bool isNoSegMem() const {
@ -248,7 +248,7 @@ struct X86Operand : public MCParsedAsmOperand {
Res->Mem.Disp = Disp;
Res->Mem.BaseReg = 0;
Res->Mem.IndexReg = 0;
Res->Mem.Scale = 0;
Res->Mem.Scale = 1;
return Res;
}