aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-03-31 20:44:29 -0700
committerGitHub <noreply@github.com>2025-03-31 20:44:29 -0700
commitdd862356e20d2d7e0d0356dff5bd80623c14febc (patch)
treeb227d78e13fce00f12b2d82a2ed0f6eeddfbea33 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent71cf59219162be67392b435dfcb9b280e1ff8681 (diff)
downloadllvm-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