diff options
author | Fangrui Song <i@maskray.me> | 2025-03-31 20:44:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 20:44:29 -0700 |
commit | dd862356e20d2d7e0d0356dff5bd80623c14febc (patch) | |
tree | b227d78e13fce00f12b2d82a2ed0f6eeddfbea33 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 71cf59219162be67392b435dfcb9b280e1ff8681 (diff) | |
download | llvm-dd862356e20d2d7e0d0356dff5bd80623c14febc.zip llvm-dd862356e20d2d7e0d0356dff5bd80623c14febc.tar.gz llvm-dd862356e20d2d7e0d0356dff5bd80623c14febc.tar.bz2 |
AsmPrinter: Remove ELF's special lowerRelativeReference for unnamed_addr function
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/132684
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions