llvm.org GIT mirror llvm / 67b212e
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 Kevin Enderby 9 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
839839 default:
840840 Error(Parser.getTok().getLoc(), "unexpected token in operand");
841841 return true;
842 case AsmToken::Identifier: {
842 case AsmToken::Identifier:
843843 if (!TryParseRegisterWithWriteBack(Operands))
844844 return false;
845 // Fall though for the Identifier case that is not a register
846 case AsmToken::Integer: // things like 1f and 2b as a branch targets
847 case AsmToken::Dot: { // . as a branch target
846848 // This was not a register so parse other operands that start with an
847849 // identifier (like labels) as expressions and create them as immediates.
848850 const MCExpr *IdVal;