From 58e4c6bdbafcf4536668a55f011c191f0a604fd3 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 25 Feb 2016 23:16:33 +0000 Subject: [PATCH] Delete dead code. When this code was first added it was compensating for the code deciding to create plt entries for directly referenced functions being too aggressive. That has since been fixed, so we don't need this anymore. llvm-svn: 261933 --- lld/ELF/Target.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 448081e..db1d637 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -751,9 +751,6 @@ bool X86_64TargetInfo::isTlsDynRel(unsigned Type, const SymbolBody &S) const { } bool X86_64TargetInfo::needsPltImpl(uint32_t Type, const SymbolBody &S) const { - if (needsCopyRel(Type, S)) - return false; - switch (Type) { default: return Plt_No; @@ -1712,8 +1709,6 @@ bool MipsTargetInfo::refersToGotEntry(uint32_t Type) const { template bool MipsTargetInfo::needsPltImpl(uint32_t Type, const SymbolBody &S) const { - if (needsCopyRel(Type, S)) - return false; if (Type == R_MIPS_26 && canBePreempted(&S, false)) return true; return false; -- 2.7.4