[PATCH] D152085: [llvm][MC] Add .pushsection/.popsection support to COFFAsmParser

Paul via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 3 16:35:21 PDT 2023


cynecx created this revision.
cynecx added a reviewer: MaskRay.
cynecx added a project: LLVM.
Herald added a subscriber: hiraditya.
Herald added a project: All.
cynecx requested review of this revision.
Herald added a subscriber: llvm-commits.

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. This patch adds support for the two mentioned directives.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152085

Files:
  llvm/lib/MC/MCParser/COFFAsmParser.cpp
  llvm/test/MC/COFF/section.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152085.528167.patch
Type: text/x-patch
Size: 3240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230603/5975a413/attachment.bin>


More information about the llvm-commits mailing list