From 32742d8f368c315d0c31cb18abbaec32a1c059ff Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 7 Jun 2019 11:09:33 +0000 Subject: [PATCH] [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 llvm-svn: 362788 --- lld/ELF/Relocations.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index d3cc608c1e26..68055bf5c882 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -379,8 +379,7 @@ static bool needsGot(RelExpr Expr) { // file (PC, or GOT for example). static bool isRelExpr(RelExpr Expr) { return oneof(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. -- 2.34.1