[lld] r261933 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 15:16:33 PST 2016
Author: rafael
Date: Thu Feb 25 17:16:33 2016
New Revision: 261933
URL: http://llvm.org/viewvc/llvm-project?rev=261933&view=rev
Log:
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.
Modified:
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=261933&r1=261932&r2=261933&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Feb 25 17:16:33 2016
@@ -751,9 +751,6 @@ bool X86_64TargetInfo::isTlsDynRel(unsig
}
bool X86_64TargetInfo::needsPltImpl(uint32_t Type, const SymbolBody &S) const {
- if (needsCopyRel<ELF64LE>(Type, S))
- return false;
-
switch (Type) {
default:
return Plt_No;
@@ -1712,8 +1709,6 @@ bool MipsTargetInfo<ELFT>::refersToGotEn
template <class ELFT>
bool MipsTargetInfo<ELFT>::needsPltImpl(uint32_t Type,
const SymbolBody &S) const {
- if (needsCopyRel<ELFT>(Type, S))
- return false;
if (Type == R_MIPS_26 && canBePreempted(&S, false))
return true;
return false;
More information about the llvm-commits
mailing list