mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-10 08:40:41 +00:00
.cfi directive register parsing flexibility.
Parsing a register name/number for .cfi directives can't assume that a register name starts with a '%' token. Be more flexible and check for a register number instead. Still unlikely to be perfect, but it allows us to parse both plain identifiers as register names and integers as register numbers, which is what we're wanting to support at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84be958ed8
commit
6f888a80d5
@ -2330,7 +2330,7 @@ bool GenericAsmParser::ParseRegisterOrRegisterNumber(int64_t &Register,
|
||||
SMLoc DirectiveLoc) {
|
||||
unsigned RegNo;
|
||||
|
||||
if (getLexer().is(AsmToken::Percent)) {
|
||||
if (getLexer().isNot(AsmToken::Integer)) {
|
||||
if (getParser().getTargetParser().ParseRegister(RegNo, DirectiveLoc,
|
||||
DirectiveLoc))
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user