[all-commits] [llvm/llvm-project] 7e6d00: AsmPrinter: Remove unneeded lowerRelativeReference...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Mar 23 23:59:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e6d008023e0892558f75ae3606d0b62000a66d0
      https://github.com/llvm/llvm-project/commit/7e6d008023e0892558f75ae3606d0b62000a66d0
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-23 (Sun, 23 Mar 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

  Log Message:
  -----------
  AsmPrinter: Remove unneeded lowerRelativeReference overrides

The function is only called by AsmPrinter, where there is a fallback
when lowerRelativeReference returns nullptr.

wasm and XCOFF could use the fallback code.

(lowerRelativeReference was introduced in 2016 (https://reviews.llvm.org/D17938)
for C++ relative vtables, but C++ relative vtables ended up using
dso_local_equivalent. llvm/test/MC/COFF/cross-section-relative.ll also
uses this.)



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