Remove redundant check.
authorRui Ueyama <ruiu@google.com>
Sun, 13 Mar 2016 03:43:32 +0000 (03:43 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 13 Mar 2016 03:43:32 +0000 (03:43 +0000)
The control reaches here only when linking MIPS binaries.

llvm-svn: 263359

lld/ELF/InputSection.cpp

index adbb5fe..d634e7c 100644 (file)
@@ -134,8 +134,6 @@ void InputSection<ELFT>::copyRelocations(uint8_t *Buf,
 
 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;