mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00:00
Fix ARMAsmParser::ParseOperand() to allow it to parse . as a branch target and
directional local labels like 1f and 2b. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc8d5f11e7
commit
67b212e03b
@ -840,10 +840,12 @@ bool ARMAsmParser::ParseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands){
|
||||
default:
|
||||
Error(Parser.getTok().getLoc(), "unexpected token in operand");
|
||||
return true;
|
||||
case AsmToken::Identifier: {
|
||||
case AsmToken::Identifier:
|
||||
if (!TryParseRegisterWithWriteBack(Operands))
|
||||
return false;
|
||||
|
||||
// Fall though for the Identifier case that is not a register
|
||||
case AsmToken::Integer: // things like 1f and 2b as a branch targets
|
||||
case AsmToken::Dot: { // . as a branch target
|
||||
// This was not a register so parse other operands that start with an
|
||||
// identifier (like labels) as expressions and create them as immediates.
|
||||
const MCExpr *IdVal;
|
||||
|
Loading…
Reference in New Issue
Block a user