[all-commits] [llvm/llvm-project] 710290: Emit unwind information in .debug_frame section wh...

Shubham Sandeep Rastogi via All-commits all-commits at lists.llvm.org
Wed Apr 26 16:20:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 710290cecce74da1368675ff3686a25037045246
      https://github.com/llvm/llvm-project/commit/710290cecce74da1368675ff3686a25037045246
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M llvm/lib/MC/MCDwarf.cpp
    A llvm/test/DebugInfo/AArch64/debugframeinfo.s

  Log Message:
  -----------
  Emit unwind information in .debug_frame section when .cfi_sections .debug_frame intrinsic is used

The .cfi_sections .debug_frame intrinsic is used to emit .debug_frame
section. This directive tells the assembler to write out a section of
debug frame data. AArch64 is a platform where eh_frame is not needed for
unwind information. Unfortunately, that means that even when the
.cfi_sections .debug_frame intrinsic is used, the compiler skips
emitting the CIE's and FDE's in the debug_frame section. This patch
address that issue by making sure that the emission of CIE's and FDE's
are only skipped if the unwind information does not require a
debug_frame section and is a platform where the eh_frame can be skipped.

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




More information about the All-commits mailing list