aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-04-08 10:11:20 -0700
committerGitHub <noreply@github.com>2025-04-08 10:11:20 -0700
commit7117dea043d39912dc41aaeba9c3186486b9b867 (patch)
tree5bf529d7069d95d74f4f77f0c01900d080844608 /llvm/lib/CodeGen/MachineScheduler.cpp
parent6d2b767678caac108eeac752b0b90c98a44107ee (diff)
downloadllvm-7117dea043d39912dc41aaeba9c3186486b9b867.zip
llvm-7117dea043d39912dc41aaeba9c3186486b9b867.tar.gz
llvm-7117dea043d39912dc41aaeba9c3186486b9b867.tar.bz2
AsmPrinter: Remove ELF's special lowerRelativeReference for unnamed_addr function; use lowerDSOLocalEquivalent in more cases
https://reviews.llvm.org/D17938 introduced lowerRelativeReference to give ConstantExpr sub (A-B) special semantics in ELF: when `A` is an `unnamed_addr` function, create a PLT-generating relocation. This was intended for C++ relative vtables, but C++ relative vtable ended up using DSOLocalEquivalent (lowerDSOLocalEquivalent). This special treatment of `unnamed_addr` seems unusual. Let's remove it. Only COFF needs an overload to generate a @IMGREL32 relocation specifier (llvm/test/MC/COFF/cross-section-relative.ll). Pull Request: https://github.com/llvm/llvm-project/pull/134781
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions