[MC] Allow .pushsection between .cfi_startproc/.cfi_endproc
authorAlex Brachet <abrachet@google.com>
Mon, 30 Jan 2023 19:27:18 +0000 (19:27 +0000)
committerAlex Brachet <abrachet@google.com>
Mon, 30 Jan 2023 19:27:18 +0000 (19:27 +0000)
commit6d9b0759c24e93c2ef1f10ca59c7317c7b440468
tree0036cfc15513a71b2b4fcf98c915fc2847f17e5b
parent155e0cf5dc2ffba0a509b1dea25fb4c31eeb367e
[MC] Allow .pushsection between .cfi_startproc/.cfi_endproc

This follows the behavior of gnu assemblers. This is useful when
writing inline assembly.

Differential Revision: https://reviews.llvm.org/D141893
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/MC/MCStreamer.cpp
llvm/test/MC/ELF/cfi-startproc-pushsection.s [new file with mode: 0644]