aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-03-29 19:08:07 -0700
committerFangrui Song <i@maskray.me>2025-03-29 19:08:07 -0700
commitdb603a09dabefc6847423c8968578ce6d54a7a2d (patch)
tree7bbb406166ebc61e580ed607b6dbf63c7450c9a7 /llvm/lib/MC/MCAssembler.cpp
parentd8b078d5509d84da987c18cb357aac867051881c (diff)
downloadllvm-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.cpp7
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;
}