[lld] r339566 - [LLD][ELF] - Remove dead code from handleTlsRelocation. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 13 06:59:06 PDT 2018
Author: grimar
Date: Mon Aug 13 06:59:06 2018
New Revision: 339566
URL: http://llvm.org/viewvc/llvm-project?rev=339566&view=rev
Log:
[LLD][ELF] - Remove dead code from handleTlsRelocation. NFC.
Code is dead because R_TLSDESC_CALL is already handled in the
following block of the code:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L231
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=339566&r1=339565&r2=339566&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Mon Aug 13 06:59:06 2018
@@ -276,8 +276,6 @@ handleTlsRelocation(RelType Type, Symbol
return 1;
}
- if (Expr == R_TLSDESC_CALL)
- return 1;
return 0;
}
More information about the llvm-commits
mailing list