llvm-mc/x86: Fix bug in disambiguation of displacement operand, introduced by me
authorDaniel Dunbar <daniel@zuster.org>
Thu, 2 Jul 2009 02:09:07 +0000 (02:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 2 Jul 2009 02:09:07 +0000 (02:09 +0000)
commit2c3f00cd948345b9a6b48401f319ee3fdf907269
tree236f920f671e85be986c4d43031e004d1addfc7c
parent46b6c5266ef055acc861b8d086c33fa01ab465bd
llvm-mc/x86: Fix bug in disambiguation of displacement operand, introduced by me
(I think).
 - We weren't properly parsing the leading parenthesized expression in something
   like 'push (4)(%eax)'.

 - Added ParseParenRelocatableExpression to support this. I suspect we should
   just use lookahead, though.

 - Test case to follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74685 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-mc/AsmParser.cpp
tools/llvm-mc/AsmParser.h
tools/llvm-mc/MC-X86Specific.cpp