[ELF] Delete R_PPC64_CALL_PLT from isRelExpr()
authorFangrui Song <maskray@google.com>
Fri, 7 Jun 2019 11:09:33 +0000 (11:09 +0000)
committerFangrui Song <maskray@google.com>
Fri, 7 Jun 2019 11:09:33 +0000 (11:09 +0000)
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

llvm-svn: 362788

lld/ELF/Relocations.cpp

index d3cc608c1e26777218f42d60eb1f9786d568ce26..68055bf5c88296229504e34dd2acafd7049e2d66 100644 (file)
@@ -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.