In MC asm parsing, account for the possibility of whitespace within
authorJohn McCall <rjmccall@apple.com>
Fri, 3 May 2013 00:15:41 +0000 (00:15 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 3 May 2013 00:15:41 +0000 (00:15 +0000)
commit26f3bb997f0c5d7951d61d28a26ca6ac1481090c
tree1ebd1e7e8a16a4b9e5f1704bfa9616431c85c4a7
parent99ad6ac65e8c97a0d3c9d884285dda01f793b7d1
In MC asm parsing, account for the possibility of whitespace within
the "identifier" parsed by the frontend callback by skipping forward
until we've consumed a token that ends at the point dictated by the
callback.

In addition, inform the callback when it's parsing an unevaluated
operand (e.g. mov eax, LENGTH A::x) as opposed to an evaluated one
(e.g. mov eax, [A::x]).

This commit depends on a clang commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180978 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmParser.h
lib/Target/X86/AsmParser/X86AsmParser.cpp