[all-commits] [llvm/llvm-project] 26d9cb: [MC][DebugInfo] Emit linetable entries with known ...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue May 20 13:27:17 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26d9cb17a6e655993c991b66b21d5c378256d79b
      https://github.com/llvm/llvm-project/commit/26d9cb17a6e655993c991b66b21d5c378256d79b
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll
    A llvm/test/DebugInfo/X86/debug-line-in-one-fragment.ll

  Log Message:
  -----------
  [MC][DebugInfo] Emit linetable entries with known offsets immediately (#134677)

DWARF linetable entries are usually emitted as a sequence of
MCDwarfLineAddrFragment fragments containing the line-number difference
and an MCExpr describing the instruction-range the linetable entry
covers. These then get relaxed during assembly emission.

However, a large number of these instruction-range expressions are
ranges within a fixed MCDataFragment, i.e. a range over fixed-size
instructions that are not subject to relaxation at a later stage. Thus,
we can compute the address-delta immediately, and not spend time and
memory describing that computation so it can be deferred.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list