summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/InputSection.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index adbb5fe4ed1..d634e7ce44f 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -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;
OpenPOWER on IntegriCloud