diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-25 23:16:33 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-25 23:16:33 +0000 |
| commit | 58e4c6bdbafcf4536668a55f011c191f0a604fd3 (patch) | |
| tree | 83eabd3740d1adf8112f63287f737ed06941daf1 | |
| parent | dd7f4e33ea2a8f8e15291def931eba7d863f2109 (diff) | |
| download | bcm5719-llvm-58e4c6bdbafcf4536668a55f011c191f0a604fd3.tar.gz bcm5719-llvm-58e4c6bdbafcf4536668a55f011c191f0a604fd3.zip | |
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
| -rw-r--r-- | lld/ELF/Target.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 448081e08f1..db1d6370e07 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<ELF64LE>(Type, S)) - return false; - switch (Type) { default: return Plt_No; @@ -1712,8 +1709,6 @@ bool MipsTargetInfo<ELFT>::refersToGotEntry(uint32_t Type) const { 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; |

