aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-29 16:26:42 -0700
committerFangrui Song <i@maskray.me>2024-06-29 16:26:42 -0700
commit3a90c27385e9a8b50e40a307822906a1303c310b (patch)
treec37b30ea9765e6f6bc2c56824c9de9591a658e1f /llvm/lib/MC/MachObjectWriter.cpp
parenteb5dbaf8d013839a66691e954a58d22a41f3c027 (diff)
downloadllvm-3a90c27385e9a8b50e40a307822906a1303c310b.zip
llvm-3a90c27385e9a8b50e40a307822906a1303c310b.tar.gz
llvm-3a90c27385e9a8b50e40a307822906a1303c310b.tar.bz2
[MC] Remove an overload of isSymbolRefDifferenceFullyResolvedImpl
e3a20f57d927e422874a8e7730bb7590515b586d (2015) overloaded isSymbolRefDifferenceFullyResolvedImpl with the IsPCRel parameter. The overload without IsPCRel is only customized by Mach-O to dsiable `.long L_var4 - L_var3` folding in darwin-x86_64-diff-reloc-assign-2.s, but that seems unnecessary.
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index b98ca3c..0ef4495 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -662,18 +662,6 @@ void MachObjectWriter::executePostLayoutBinding(MCAssembler &Asm,
}
bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
- const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B,
- bool InSet) const {
- // FIXME: We don't handle things like
- // foo = .
- // creating atoms.
- if (A.isVariable() || B.isVariable())
- return false;
- return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, A, B,
- InSet);
-}
-
-bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB,
bool InSet, bool IsPCRel) const {
if (InSet)