Skip to content

Commit 6521c40

Browse files
committed
[MC] Remove an unneeded Darwin x86_64 workaround
The workaround (relocation suppression) from 7b46bb8 (2011) has been unneeded after bfd0f01 (2014) removed `if (!A_base) return false;` and `if (!B_base) return false;`
1 parent cd34e89 commit 6521c40

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/lib/MC/MachObjectWriter.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,16 +710,6 @@ bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
710710
return false;
711711
return true;
712712
}
713-
// For Darwin x86_64, there is one special case when the reference IsPCRel.
714-
// If the fragment with the reference does not have a base symbol but meets
715-
// the simple way of dealing with this, in that it is a temporary symbol in
716-
// the same atom then it is assumed to be fully resolved. This is needed so
717-
// a relocation entry is not created and so the static linker does not
718-
// mess up the reference later.
719-
else if(!FB.getAtom() &&
720-
SA.isTemporary() && SA.isInSection() && &SecA == &SecB){
721-
return true;
722-
}
723713
}
724714

725715
// If they are not in the same section, we can't compute the diff.

0 commit comments

Comments
 (0)