[all-commits] [llvm/llvm-project] c7500a: RISCVAsmBackend: Simplify relaxDwarfLineAddr and r...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Aug 2 11:22:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7500a2ec3baae1f0d7de0de94407d4bdb2e5d4d
      https://github.com/llvm/llvm-project/commit/c7500a2ec3baae1f0d7de0de94407d4bdb2e5d4d
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-08-02 (Sat, 02 Aug 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h

  Log Message:
  -----------
  RISCVAsmBackend: Simplify relaxDwarfLineAddr and remove getRelocPairForSize

Instead of creating two separate fixups, create a single one. Leverage
RISCVAsmBackend::addReloc to generate ADD/SUB relocation pairs.
In a future change MCFragment::setVarFixup may be restricted to a single
fixup.



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