From: Fangrui Song Date: Mon, 23 Dec 2019 00:55:38 +0000 (-0800) Subject: [ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). NFC X-Git-Tag: llvmorg-11-init~1532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2539cd22e96ef53da204c9bb28b8a38a582c1309;p=platform%2Fupstream%2Fllvm.git [ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). NFC scanReloc() returns when it sees an R_HINT. --- diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 78bafe5..c5aa801 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -375,8 +375,8 @@ static bool isStaticLinkTimeConstant(RelExpr e, RelType type, const Symbol &sym, R_AARCH64_GOT_PAGE_PC, R_GOT_PC, R_GOTONLY_PC, R_GOTPLTONLY_PC, R_PLT_PC, R_TLSGD_GOT, R_TLSGD_GOTPLT, R_TLSGD_PC, R_PPC32_PLTREL, R_PPC64_CALL_PLT, R_PPC64_RELAX_TOC, R_RISCV_ADD, R_TLSDESC_CALL, - R_TLSDESC_PC, R_AARCH64_TLSDESC_PAGE, R_HINT, R_TLSLD_HINT, - R_TLSIE_HINT>(e)) + R_TLSDESC_PC, R_AARCH64_TLSDESC_PAGE, R_TLSLD_HINT, R_TLSIE_HINT>( + e)) return true; // These never do, except if the entire file is position dependent or if