[lld] 2539cd2 - [ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 16:58:30 PST 2019


Author: Fangrui Song
Date: 2019-12-22T16:58:22-08:00
New Revision: 2539cd22e96ef53da204c9bb28b8a38a582c1309

URL: https://github.com/llvm/llvm-project/commit/2539cd22e96ef53da204c9bb28b8a38a582c1309
DIFF: https://github.com/llvm/llvm-project/commit/2539cd22e96ef53da204c9bb28b8a38a582c1309.diff

LOG: [ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). NFC

scanReloc() returns when it sees an R_HINT.

Added: 
    

Modified: 
    lld/ELF/Relocations.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 78bafe53023e..c5aa801dee7c 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


        


More information about the llvm-commits mailing list