diff --git a/llvm/include/llvm/MC/MCAsmBackend.h b/llvm/include/llvm/MC/MCAsmBackend.h index 710e84b05ee5..1c9feef10a33 100644 --- a/llvm/include/llvm/MC/MCAsmBackend.h +++ b/llvm/include/llvm/MC/MCAsmBackend.h @@ -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; }; diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp index 5f7974ab6cae..0c295997ab52 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp @@ -602,14 +602,6 @@ bool MipsAsmBackend::shouldForceRelocation(const MCAssembler &Asm, } } -bool MipsAsmBackend::isMicroMips(const MCSymbol *Sym) const { - if (const auto *ElfSym = dyn_cast(Sym)) { - if (ElfSym->getOther() & ELF::STO_MIPS_MICROMIPS) - return true; - } - return false; -} - namespace { class WindowsMipsAsmBackend : public MipsAsmBackend { diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h index 9752615422b6..1e8504aaf2aa 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h @@ -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