aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-08-19 16:16:24 -0700
committerFangrui Song <i@maskray.me>2023-08-19 16:16:24 -0700
commit6521c40fb1e195b2653ac83020cf274e284b257a (patch)
tree9e82487ed2205bb8eac80be9c2bb2e85e6774bf2 /llvm/lib/MC/MachObjectWriter.cpp
parentcd34e89cfabbc43a89bac5f0e4e84ebee0e4e167 (diff)
downloadllvm-6521c40fb1e195b2653ac83020cf274e284b257a.zip
llvm-6521c40fb1e195b2653ac83020cf274e284b257a.tar.gz
llvm-6521c40fb1e195b2653ac83020cf274e284b257a.tar.bz2
[MC] Remove an unneeded Darwin x86_64 workaround
The workaround (relocation suppression) from 7b46bb8e327d45598eb794e14fc87e8c2a55f65e (2011) has been unneeded after bfd0f01dd75f299bb521a2a31f270b3687be2cee (2014) removed `if (!A_base) return false;` and `if (!B_base) return false;`
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 6b263df..04097df 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -710,16 +710,6 @@ bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
return false;
return true;
}
- // For Darwin x86_64, there is one special case when the reference IsPCRel.
- // If the fragment with the reference does not have a base symbol but meets
- // the simple way of dealing with this, in that it is a temporary symbol in
- // the same atom then it is assumed to be fully resolved. This is needed so
- // a relocation entry is not created and so the static linker does not
- // mess up the reference later.
- else if(!FB.getAtom() &&
- SA.isTemporary() && SA.isInSection() && &SecA == &SecB){
- return true;
- }
}
// If they are not in the same section, we can't compute the diff.