[all-commits] [llvm/llvm-project] edb18e: [AsmParser] Recognize more escaped characters betw...

LemonBoy via All-commits all-commits at lists.llvm.org
Thu Apr 8 01:00:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: edb18ea5a9132a8e359ce0c0b103286d15244b8a
      https://github.com/llvm/llvm-project/commit/edb18ea5a9132a8e359ce0c0b103286d15244b8a
  Author: LemonBoy <thatlemon at gmail.com>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmLexer.cpp
    M llvm/test/MC/AsmParser/directive_values.s

  Log Message:
  -----------
  [AsmParser] Recognize more escaped characters between single quotes

The GNU AS manual states the following about single-character constants enclosed within single quotes:

>  Some backslash escapes apply to characters, \b, \f, \n, \r, \t, and \" with the same meaning as for strings, plus \' for a single quote.

Add two more characters to the switch handling this case to match GAS behaviour, plus a test to make sure nothing regresses.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D99609




More information about the All-commits mailing list