MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing the
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 02:47:07 +0000 (02:47 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 02:47:07 +0000 (02:47 +0000)
commitcceba838935b5018fddf7118bb8b9e6f50bbbe45
tree2db18a9bfd589b8a018fed03acccc6933d60c129
parent96b5f7113a10dd34b56b5ca5f7bda49072b2fc8c
MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing the
expression to include the modifier.
 - Gross, but this a corner case we don't expect to see often in practice, but
   it is worth accepting.
 - Also improves diagnostics on invalid modifiers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114154 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/expr_symbol_modifiers.s [new file with mode: 0644]