[all-commits] [llvm/llvm-project] ed7f4e: [LoongArch] Add relaxDwarfLineAddr and relaxDwarfC...

Jinyang He via All-commits all-commits at lists.llvm.org
Mon Jan 15 21:20:25 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed7f4edc19ada006789318a0929b57d1b5a761bd
      https://github.com/llvm/llvm-project/commit/ed7f4edc19ada006789318a0929b57d1b5a761bd
  Author: Jinyang He <hejinyang at loongson.cn>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/Object/RelocationResolver.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.h
    A llvm/test/DebugInfo/LoongArch/dwarf-loongarch-relocs.ll
    A llvm/test/DebugInfo/LoongArch/lit.local.cfg

  Log Message:
  -----------
  [LoongArch] Add relaxDwarfLineAddr and relaxDwarfCFA to handle the mutable label diff in dwarfinfo (#77728)

When linker-relaxation is enabled, part of the label diff in dwarfinfo
cannot be computed before static link. Refer to RISCV, we add the
relaxDwarfLineAddr and relaxDwarfCFA to add relocations for these label
diffs. Calculate whether the label diff is mutable. For immutable label
diff, return false and do the other works by its parent function.




More information about the All-commits mailing list