[all-commits] [llvm/llvm-project] f87638: [AsmParser][ARM] Make .thumb_func imply .thumb

LemonBoy via All-commits all-commits at lists.llvm.org
Fri May 7 03:13:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f87638338464e7ff9396e92e04e3f5702d479d39
      https://github.com/llvm/llvm-project/commit/f87638338464e7ff9396e92e04e3f5702d479d39
  Author: LemonBoy <thatlemon at gmail.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M lld/test/ELF/arm-ldrlit-err.s
    M llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
    A llvm/test/MC/ARM/thumb_func-implies-thumb.s

  Log Message:
  -----------
  [AsmParser][ARM] Make .thumb_func imply .thumb

GNU as documentation states that a `.thumb_func` directive implies `.thumb`, teach the asm parser to switch mode whenever it's encountered. On the other hand the labeled form, exclusive to Apple's toolchain, doesn't switch mode at all.

Reviewed By: nickdesaulniers, peter.smith

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




More information about the All-commits mailing list