mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 06:46:33 +00:00
[MC] Remove unused MCAsmBackend::isMicroMips()
method (NFC) (#135581)
The only use was removed by 4c892770.
This commit is contained in:
parent
a32d4917c8
commit
7778a197e6
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user