Skip to content

Commit 7778a19

Browse files
authored
[MC] Remove unused MCAsmBackend::isMicroMips() method (NFC) (#135581)
The only use was removed by 4c89277.
1 parent a32d491 commit 7778a19

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

llvm/include/llvm/MC/MCAsmBackend.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,6 @@ class MCAsmBackend {
223223
return 0;
224224
}
225225

226-
/// Check whether a given symbol has been flagged with MICROMIPS flag.
227-
virtual bool isMicroMips(const MCSymbol *Sym) const {
228-
return false;
229-
}
230-
231226
bool isDarwinCanonicalPersonality(const MCSymbol *Sym) const;
232227
};
233228

llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,6 @@ bool MipsAsmBackend::shouldForceRelocation(const MCAssembler &Asm,
602602
}
603603
}
604604

605-
bool MipsAsmBackend::isMicroMips(const MCSymbol *Sym) const {
606-
if (const auto *ElfSym = dyn_cast<const MCSymbolELF>(Sym)) {
607-
if (ElfSym->getOther() & ELF::STO_MIPS_MICROMIPS)
608-
return true;
609-
}
610-
return false;
611-
}
612-
613605
namespace {
614606

615607
class WindowsMipsAsmBackend : public MipsAsmBackend {

llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class MipsAsmBackend : public MCAsmBackend {
5454
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup,
5555
const MCValue &Target,
5656
const MCSubtargetInfo *STI) override;
57-
58-
bool isMicroMips(const MCSymbol *Sym) const override;
5957
}; // class MipsAsmBackend
6058

6159
} // namespace

0 commit comments

Comments
 (0)