[LLD][ELF] - Remove dead code from handleTlsRelocation. NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 13 Aug 2018 13:59:06 +0000 (13:59 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 13 Aug 2018 13:59:06 +0000 (13:59 +0000)
Code is dead because R_TLSDESC_CALL is already handled in the
following block of the code:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L231

llvm-svn: 339566

lld/ELF/Relocations.cpp

index 8ab98c5..aeb7e98 100644 (file)
@@ -276,8 +276,6 @@ handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C,
     return 1;
   }
 
-  if (Expr == R_TLSDESC_CALL)
-    return 1;
   return 0;
 }