[lld] r263359 - Remove redundant check.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 12 19:43:32 PST 2016


Author: ruiu
Date: Sat Mar 12 21:43:32 2016
New Revision: 263359

URL: http://llvm.org/viewvc/llvm-project?rev=263359&view=rev
Log:
Remove redundant check.

The control reaches here only when linking MIPS binaries.

Modified:
    lld/trunk/ELF/InputSection.cpp

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=263359&r1=263358&r2=263359&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Sat Mar 12 21:43:32 2016
@@ -134,8 +134,6 @@ void InputSection<ELFT>::copyRelocations
 
 template <class RelTy>
 static uint32_t getMipsPairType(const RelTy *Rel, const SymbolBody &Sym) {
-  if (Config->EMachine != EM_MIPS)
-    return R_MIPS_NONE;
   switch (Rel->getType(Config->Mips64EL)) {
   case R_MIPS_HI16:
     return R_MIPS_LO16;




More information about the llvm-commits mailing list