[all-commits] [llvm/llvm-project] 63538a: [MC] Add .pushsection/.popsection support to COFFA...

cynecx via All-commits all-commits at lists.llvm.org
Wed Jun 21 10:40:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63538a087926f9f9dc992918b06be4720f4c59fb
      https://github.com/llvm/llvm-project/commit/63538a087926f9f9dc992918b06be4720f4c59fb
  Author: cynecx <me at cynecx.net>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M llvm/lib/MC/MCParser/COFFAsmParser.cpp
    M llvm/test/MC/COFF/section.s

  Log Message:
  -----------
  [MC] Add .pushsection/.popsection support to COFFAsmParser

The COFFAsmParser (to my surprise) didn't support the .pushsection and
.popsection directives. These directives aren't directly useful, however for
frontends that have inline asm support this is really useful. Rust in
particular, has support for inline asm, which can be used together with these
directives to "emulate" features like static generics. This patch adds support
for the two mentioned directives.

Reviewed By: MaskRay

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




More information about the All-commits mailing list