mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +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 ']'
|
// Handle '[' Scale*IndexReg ']'
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
||||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||||
Scale = Val;
|
Scale = Val;
|
||||||
} else
|
} else
|
||||||
return ErrorOperand(Loc, "Unepxeted token");
|
return ErrorOperand(Loc, "Unexpected token");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getLexer().is(AsmToken::Plus) || getLexer().is(AsmToken::Minus)) {
|
if (getLexer().is(AsmToken::Plus) || getLexer().is(AsmToken::Minus)) {
|
||||||
@ -684,8 +684,8 @@ X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
|
|||||||
if (getLexer().is(AsmToken::Star)) {
|
if (getLexer().is(AsmToken::Star)) {
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
SMLoc IdxRegLoc = Parser.getTok().getLoc();
|
||||||
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
if (ParseRegister(IndexReg, IdxRegLoc, End))
|
||||||
return ErrorOperand(IdxRegLoc, "Expected register");
|
return ErrorOperand(IdxRegLoc, "Expected register");
|
||||||
Scale = Val;
|
Scale = Val;
|
||||||
} else if (getLexer().is(AsmToken::RBrac)) {
|
} else if (getLexer().is(AsmToken::RBrac)) {
|
||||||
const MCExpr *ValExpr = MCConstantExpr::Create(Val, getContext());
|
const MCExpr *ValExpr = MCConstantExpr::Create(Val, getContext());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user