mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Simplify logic. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -633,15 +633,14 @@ X86Operand *X86AsmParser::ParseOperand() {
|
|||||||
|
|
||||||
/// getIntelMemOperandSize - Return intel memory operand size.
|
/// getIntelMemOperandSize - Return intel memory operand size.
|
||||||
static unsigned getIntelMemOperandSize(StringRef OpStr) {
|
static unsigned getIntelMemOperandSize(StringRef OpStr) {
|
||||||
unsigned Size = 0;
|
if (OpStr == "BYTE") return 8;
|
||||||
if (OpStr == "BYTE") Size = 8;
|
if (OpStr == "WORD") return 16;
|
||||||
if (OpStr == "WORD") Size = 16;
|
if (OpStr == "DWORD") return 32;
|
||||||
if (OpStr == "DWORD") Size = 32;
|
if (OpStr == "QWORD") return 64;
|
||||||
if (OpStr == "QWORD") Size = 64;
|
if (OpStr == "XWORD") return 80;
|
||||||
if (OpStr == "XWORD") Size = 80;
|
if (OpStr == "XMMWORD") return 128;
|
||||||
if (OpStr == "XMMWORD") Size = 128;
|
if (OpStr == "YMMWORD") return 256;
|
||||||
if (OpStr == "YMMWORD") Size = 256;
|
return 0;
|
||||||
return Size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
|
X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
|
||||||
|
Reference in New Issue
Block a user