[all-commits] [llvm/llvm-project] 37fb3b: [AsmParser] Make generic directives and aliases ca...

David Spickett via All-commits all-commits at lists.llvm.org
Fri Jan 17 03:07:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 37fb3b33637b7ac120d68792ad2246c8b5d7eeff
      https://github.com/llvm/llvm-project/commit/37fb3b33637b7ac120d68792ad2246c8b5d7eeff
  Author: David Spickett <david.spickett at arm.com>
  Date:   2020-01-17 (Fri, 17 Jan 2020)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    A llvm/test/MC/AsmParser/directive_case_insensitive.s

  Log Message:
  -----------
  [AsmParser] Make generic directives and aliases case insensitive.

GCC will accept any case for assembler directives.
For example ".abort" and ".ABORT" (even ".aBoRt")
are equivalent.

https://sourceware.org/binutils/docs/as/Pseudo-Ops.html#Pseudo-Ops
"The names are case insensitive for most targets,
and usually written in lower case."

Change llvm-mc to accept any case for generic directives
or aliases of those directives.

This for Bugzilla #39527.

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




More information about the All-commits mailing list