Fix parsing of .symver directive on ARM
authorDavid Peixotto <dpeixott@codeaurora.org>
Wed, 15 Jan 2014 22:40:02 +0000 (22:40 +0000)
committerDavid Peixotto <dpeixott@codeaurora.org>
Wed, 15 Jan 2014 22:40:02 +0000 (22:40 +0000)
commita034c96443006487a566d960d5e14f6f1c4cdf7c
tree9f6f88330ff7a92ccdaa524bb7c0cf430a70b510
parent4c831d97bf065ae5d0fcba80b28e8396dfda7f39
Fix parsing of .symver directive on ARM

ARM assembly syntax uses @ for a comment, execpt for the second
parameter of the .symver directive which requires @ as part of the
symbol name. This commit fixes the parsing of this directive by
adding a special case for ARM for this one argumnet.

To make the change we had to move the AllowAtInIdentifier variable
to the MCAsmLexer interface (from AsmLexer) and expose a setter for
the value.  The ELFAsmParser then toggles this value when parsing
the second argument to the .symver directive for a target that
uses @ as a comment symbol

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199339 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/AsmLexer.h
include/llvm/MC/MCParser/MCAsmLexer.h
lib/MC/MCParser/ELFAsmParser.cpp
test/MC/ARM/arm-elf-symver.s [new file with mode: 0644]
test/MC/ARM/comment.s