[lld] r362788 - [ELF] Delete R_PPC64_CALL_PLT from isRelExpr()
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 04:09:33 PDT 2019
Author: maskray
Date: Fri Jun 7 04:09:33 2019
New Revision: 362788
URL: http://llvm.org/viewvc/llvm-project?rev=362788&view=rev
Log:
[ELF] Delete R_PPC64_CALL_PLT from isRelExpr()
It was added by D46654 but is actually never used.
R_PPC64_CALL_PLT (was: R_PPC_CALL_PLT) is a static link-time constant.
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D62994
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=362788&r1=362787&r2=362788&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Fri Jun 7 04:09:33 2019
@@ -379,8 +379,7 @@ static bool needsGot(RelExpr Expr) {
// file (PC, or GOT for example).
static bool isRelExpr(RelExpr Expr) {
return oneof<R_PC, R_GOTREL, R_GOTPLTREL, R_MIPS_GOTREL, R_PPC64_CALL,
- R_PPC64_CALL_PLT, R_PPC64_RELAX_TOC, R_AARCH64_PAGE_PC,
- R_RELAX_GOT_PC>(Expr);
+ R_PPC64_RELAX_TOC, R_AARCH64_PAGE_PC, R_RELAX_GOT_PC>(Expr);
}
// Returns true if a given relocation can be computed at link-time.
More information about the llvm-commits
mailing list