mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Fix typo in error message and remove some tab characters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160423 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f496a628e
commit
833d7f8588
@ -667,11 +667,11 @@ X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
|
||||
// Handle '[' Scale*IndexReg ']'
|
||||
Parser.Lex();
|
||||
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||
Scale = Val;
|
||||
} else
|
||||
return ErrorOperand(Loc, "Unepxeted token");
|
||||
return ErrorOperand(Loc, "Unexpected token");
|
||||
}
|
||||
|
||||
if (getLexer().is(AsmToken::Plus) || getLexer().is(AsmToken::Minus)) {
|
||||
@ -684,8 +684,8 @@ X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
|
||||
if (getLexer().is(AsmToken::Star)) {
|
||||
Parser.Lex();
|
||||
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||
Scale = Val;
|
||||
} else if (getLexer().is(AsmToken::RBrac)) {
|
||||
const MCExpr *ValExpr = MCConstantExpr::Create(Val, getContext());
|
||||
|
Loading…
Reference in New Issue
Block a user