[MC] Remove unused MCAsmBackend::isMicroMips() method (NFC) (#135581)

The only use was removed by 4c892770.
This commit is contained in:
Sergei Barannikov 2025-04-14 06:20:46 +03:00 committed by GitHub
parent a32d4917c8
commit 7778a197e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 15 deletions

View File

@ -223,11 +223,6 @@ public:
return 0;
}
/// Check whether a given symbol has been flagged with MICROMIPS flag.
virtual bool isMicroMips(const MCSymbol *Sym) const {
return false;
}
bool isDarwinCanonicalPersonality(const MCSymbol *Sym) const;
};

View File

@ -602,14 +602,6 @@ bool MipsAsmBackend::shouldForceRelocation(const MCAssembler &Asm,
}
}
bool MipsAsmBackend::isMicroMips(const MCSymbol *Sym) const {
if (const auto *ElfSym = dyn_cast<const MCSymbolELF>(Sym)) {
if (ElfSym->getOther() & ELF::STO_MIPS_MICROMIPS)
return true;
}
return false;
}
namespace {
class WindowsMipsAsmBackend : public MipsAsmBackend {

View File

@ -54,8 +54,6 @@ public:
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
const MCValue &Target,
const MCSubtargetInfo *STI) override;
bool isMicroMips(const MCSymbol *Sym) const override;
}; // class MipsAsmBackend
} // namespace