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)
commit6a5b812c7b8ae96f7e07ca8512c7e3e0a4eee636
tree9ff05290792fc1afe15b929d74accc77bec34345
parentc05ca5e40c7eee09a12fe5fff81e7ca1b3450aba
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.

llvm-svn: 211249
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/intel-syntax.s