mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 15:57:15 +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;
|
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;
|
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 {
|
namespace {
|
||||||
|
|
||||||
class WindowsMipsAsmBackend : public MipsAsmBackend {
|
class WindowsMipsAsmBackend : public MipsAsmBackend {
|
||||||
|
@ -54,8 +54,6 @@ public:
|
|||||||
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
|
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
const MCSubtargetInfo *STI) override;
|
const MCSubtargetInfo *STI) override;
|
||||||
|
|
||||||
bool isMicroMips(const MCSymbol *Sym) const override;
|
|
||||||
}; // class MipsAsmBackend
|
}; // class MipsAsmBackend
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user