[ARM] Fix dropped dollar sign from symbols in branch targets
Summary: ARMAsmParser was incorrectly dropping a leading dollar sign character from symbol names in targets of branch instructions. This was caused by an incorrect assumption that the contents following the dollar sign token should be handled as a constant immediate, similarly to the # token. This patch avoids the operand parsing from consuming the dollar sign token when it is followed by an identifier, making sure it is properly parsed as part of the expression. Reviewers: efriedma Reviewed By: efriedma Subscribers: danielkiss, chill, carwil, vhscampos, kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73176
Loading
Please register or sign in to comment