[all-commits] [llvm/llvm-project] 3f981c: [MC] Allow Stackmap sections after DWARF in MachO.

lhames via All-commits all-commits at lists.llvm.org
Mon Mar 9 18:34:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f981cdde90fada6a6aa0f6ebe2f53105b80d523
      https://github.com/llvm/llvm-project/commit/3f981cdde90fada6a6aa0f6ebe2f53105b80d523
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-03-09 (Mon, 09 Mar 2020)

  Changed paths:
    M llvm/lib/MC/MCMachOStreamer.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list