llvm-6502/lib/MC/MCParser
David Peixotto d05b93515d Integrated assembler incorrectly lexes ARM-style comments
The integrated assembler fails to properly lex arm comments when
they are adjacent to an identifier in the input stream. The reason
is that the arm comment symbol '@' is also used as symbol variant in
other assembly languages so when lexing an identifier it allows the
'@' symbol as part of the identifier.

Example:
  $ cat comment.s
  foo:
    add r0, r0@got to parse this as a comment

  $ llvm-mc -triple armv7 comment.s
  comment.s:4:18: error: unexpected token in argument list
    add r0, r0@got to parse this as a comment
                   ^
This should be parsed as correctly as `add r0, r0`.

This commit modifes the assembly lexer to not include the '@' symbol
in identifiers when lexing for targets that use '@' for comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196607 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-06 20:35:58 +00:00
..
AsmLexer.cpp Integrated assembler incorrectly lexes ARM-style comments 2013-12-06 20:35:58 +00:00
AsmParser.cpp Add support for parsing ARM symbol variants on ELF targets 2013-12-04 22:43:20 +00:00
CMakeLists.txt
COFFAsmParser.cpp Support multiple COFF sections with the same name but different COMDAT. 2013-11-19 19:52:52 +00:00
DarwinAsmParser.cpp Add Support For .bss Named Section Directive For Darwin Targets. 2013-10-02 14:09:29 +00:00
ELFAsmParser.cpp Move .ident handling to MCStreamer. 2013-10-16 01:05:45 +00:00
LLVMBuild.txt
Makefile
MCAsmLexer.cpp
MCAsmParser.cpp
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp