mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Fix misleading comments in ARMAsmParser
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e9a96d810
commit
38946caa43
@ -3091,7 +3091,7 @@ parseVectorLane(VectorLaneTy &LaneKind, unsigned &Index, SMLoc &EndLoc) {
|
|||||||
// There's an optional '#' token here. Normally there wouldn't be, but
|
// There's an optional '#' token here. Normally there wouldn't be, but
|
||||||
// inline assemble puts one in, and it's friendly to accept that.
|
// inline assemble puts one in, and it's friendly to accept that.
|
||||||
if (Parser.getTok().is(AsmToken::Hash))
|
if (Parser.getTok().is(AsmToken::Hash))
|
||||||
Parser.Lex(); // Eat the '#'
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
|
|
||||||
const MCExpr *LaneIndex;
|
const MCExpr *LaneIndex;
|
||||||
SMLoc Loc = Parser.getTok().getLoc();
|
SMLoc Loc = Parser.getTok().getLoc();
|
||||||
@ -3409,7 +3409,7 @@ parseMemBarrierOptOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
Tok.is(AsmToken::Dollar) ||
|
Tok.is(AsmToken::Dollar) ||
|
||||||
Tok.is(AsmToken::Integer)) {
|
Tok.is(AsmToken::Integer)) {
|
||||||
if (Parser.getTok().isNot(AsmToken::Integer))
|
if (Parser.getTok().isNot(AsmToken::Integer))
|
||||||
Parser.Lex(); // Eat the '#'.
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
SMLoc Loc = Parser.getTok().getLoc();
|
SMLoc Loc = Parser.getTok().getLoc();
|
||||||
|
|
||||||
const MCExpr *MemBarrierID;
|
const MCExpr *MemBarrierID;
|
||||||
@ -3458,7 +3458,7 @@ parseInstSyncBarrierOptOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
Tok.is(AsmToken::Dollar) ||
|
Tok.is(AsmToken::Dollar) ||
|
||||||
Tok.is(AsmToken::Integer)) {
|
Tok.is(AsmToken::Integer)) {
|
||||||
if (Parser.getTok().isNot(AsmToken::Integer))
|
if (Parser.getTok().isNot(AsmToken::Integer))
|
||||||
Parser.Lex(); // Eat the '#'.
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
SMLoc Loc = Parser.getTok().getLoc();
|
SMLoc Loc = Parser.getTok().getLoc();
|
||||||
|
|
||||||
const MCExpr *ISBarrierID;
|
const MCExpr *ISBarrierID;
|
||||||
@ -3981,7 +3981,7 @@ parseAM3Offset(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
// Do immediates first, as we always parse those if we have a '#'.
|
// Do immediates first, as we always parse those if we have a '#'.
|
||||||
if (Parser.getTok().is(AsmToken::Hash) ||
|
if (Parser.getTok().is(AsmToken::Hash) ||
|
||||||
Parser.getTok().is(AsmToken::Dollar)) {
|
Parser.getTok().is(AsmToken::Dollar)) {
|
||||||
Parser.Lex(); // Eat the '#'.
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
// Explicitly look for a '-', as we need to encode negative zero
|
// Explicitly look for a '-', as we need to encode negative zero
|
||||||
// differently.
|
// differently.
|
||||||
bool isNegative = Parser.getTok().is(AsmToken::Minus);
|
bool isNegative = Parser.getTok().is(AsmToken::Minus);
|
||||||
@ -4460,7 +4460,7 @@ parseMemory(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
Parser.getTok().is(AsmToken::Dollar) ||
|
Parser.getTok().is(AsmToken::Dollar) ||
|
||||||
Parser.getTok().is(AsmToken::Integer)) {
|
Parser.getTok().is(AsmToken::Integer)) {
|
||||||
if (Parser.getTok().isNot(AsmToken::Integer))
|
if (Parser.getTok().isNot(AsmToken::Integer))
|
||||||
Parser.Lex(); // Eat the '#'.
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
E = Parser.getTok().getLoc();
|
E = Parser.getTok().getLoc();
|
||||||
|
|
||||||
bool isNegative = getParser().getTok().is(AsmToken::Minus);
|
bool isNegative = getParser().getTok().is(AsmToken::Minus);
|
||||||
@ -4642,7 +4642,7 @@ parseFPImm(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
TyOp->getToken() != ".f64"))
|
TyOp->getToken() != ".f64"))
|
||||||
return MatchOperand_NoMatch;
|
return MatchOperand_NoMatch;
|
||||||
|
|
||||||
Parser.Lex(); // Eat the '#'.
|
Parser.Lex(); // Eat '#' or '$'.
|
||||||
|
|
||||||
// Handle negation, as that still comes through as a separate token.
|
// Handle negation, as that still comes through as a separate token.
|
||||||
bool isNegative = false;
|
bool isNegative = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user