MS asm: Properly handle quoted symbol names
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 19 Jun 2014 01:25:43 +0000 (01:25 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 19 Jun 2014 01:25:43 +0000 (01:25 +0000)
commitf9ec8fe70c5084a15372cc0b126218f699794e24
tree3ab65f3643ba87a0cee288e7105f2d1c8952a781
parentd9b35435b89015d154b0e20f4d4796d936237f84
MS asm: Properly handle quoted symbol names

We would get confused by '@' characters in symbol names, we would
mistake the text following them for the variant kind.

When an identifier a string, the variant kind will never show up inside
of it.  Instead, check to see if there is a variant following the
string.

This fixes PR19965.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211249 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/X86/intel-syntax.s