[MC] Allow Stackmap sections after DWARF in MachO.
authorLang Hames <lhames@gmail.com>
Mon, 9 Mar 2020 04:41:10 +0000 (21:41 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 10 Mar 2020 01:33:32 +0000 (18:33 -0700)
commit3f981cdde90fada6a6aa0f6ebe2f53105b80d523
tree7317e62f304a460ff5134a832db49b35f1bb22a6
parente241573d5972d34a323fa5c64774c4207340beb3
[MC] Allow Stackmap sections after DWARF in MachO.

Summary:
Mixing stackmaps and DWARF in a single file triggers an assertion in
MCMachOStreamer as stackmap sections are emitted in AsmPrinter::emitEndOfAsmFile
after the DWARF sections have already been emitted.

Since it should be safe to emit stackmap sections after DWARF sections this
patch relaxes the assertion to allow that.

Reviewers: aprantl, dblaikie, echristo

Subscribers: hiraditya, ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75836
llvm/lib/MC/MCMachOStreamer.cpp