diff options
author | Fangrui Song <i@maskray.me> | 2025-03-29 19:08:07 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-03-29 19:08:07 -0700 |
commit | db603a09dabefc6847423c8968578ce6d54a7a2d (patch) | |
tree | 7bbb406166ebc61e580ed607b6dbf63c7450c9a7 /llvm/lib/MC/MCAssembler.cpp | |
parent | d8b078d5509d84da987c18cb357aac867051881c (diff) | |
download | llvm-db603a09dabefc6847423c8968578ce6d54a7a2d.zip llvm-db603a09dabefc6847423c8968578ce6d54a7a2d.tar.gz llvm-db603a09dabefc6847423c8968578ce6d54a7a2d.tar.bz2 |
[MC] Move ELF-specific handleAddSubRelocations to ELFObjectWriter::recordRelocation
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 1c79af4..835fa8a 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -234,13 +234,6 @@ bool MCAssembler::evaluateFixup(const MCFixup &Fixup, const MCFragment *DF, } } - // A linker relaxation target may emit ADD/SUB relocations for A-B+C. Let - // recordRelocation handle non-VK_None cases like A@plt-B+C. - if (!IsResolved && Target.getSymA() && Target.getSubSym() && - Target.getRefKind() == 0 && - getBackend().handleAddSubRelocations(*this, *DF, Fixup, Target, Value)) - return true; - return IsResolved; } |