mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -369,7 +369,7 @@ static unsigned MatchRegisterName(StringRef Name);
|
|||||||
int ARMAsmParser::TryParseRegister() {
|
int ARMAsmParser::TryParseRegister() {
|
||||||
const AsmToken &Tok = Parser.getTok();
|
const AsmToken &Tok = Parser.getTok();
|
||||||
assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier");
|
assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier");
|
||||||
|
|
||||||
// FIXME: Validate register for the current architecture; we have to do
|
// FIXME: Validate register for the current architecture; we have to do
|
||||||
// validation later, so maybe there is no need for this here.
|
// validation later, so maybe there is no need for this here.
|
||||||
int RegNum = MatchRegisterName(Tok.getString());
|
int RegNum = MatchRegisterName(Tok.getString());
|
||||||
@ -378,8 +378,8 @@ int ARMAsmParser::TryParseRegister() {
|
|||||||
Parser.Lex(); // Eat identifier token.
|
Parser.Lex(); // Eat identifier token.
|
||||||
return RegNum;
|
return RegNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Try to parse a register name. The token must be an Identifier when called,
|
/// Try to parse a register name. The token must be an Identifier when called,
|
||||||
/// and if it is a register name the token is eaten and the register number is
|
/// and if it is a register name the token is eaten and the register number is
|
||||||
/// returned. Otherwise return -1.
|
/// returned. Otherwise return -1.
|
||||||
@ -390,7 +390,7 @@ ARMOperand *ARMAsmParser::TryParseRegisterWithWriteBack() {
|
|||||||
SMLoc S = Parser.getTok().getLoc();
|
SMLoc S = Parser.getTok().getLoc();
|
||||||
int RegNo = TryParseRegister();
|
int RegNo = TryParseRegister();
|
||||||
if (RegNo == -1) return 0;
|
if (RegNo == -1) return 0;
|
||||||
|
|
||||||
SMLoc E = Parser.getTok().getLoc();
|
SMLoc E = Parser.getTok().getLoc();
|
||||||
|
|
||||||
bool Writeback = false;
|
bool Writeback = false;
|
||||||
@ -602,7 +602,7 @@ bool ARMAsmParser::ParseMemoryOffsetReg(bool &Negative,
|
|||||||
E = CurLoc;
|
E = CurLoc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we parsed a register as the offset then their can be a shift after that
|
// If we parsed a register as the offset then their can be a shift after that
|
||||||
if (OffsetRegNum != -1) {
|
if (OffsetRegNum != -1) {
|
||||||
// Look for a comma then a shift
|
// Look for a comma then a shift
|
||||||
|
Reference in New Issue
Block a user