[llvm] [MC] Remove unused `MCAsmBackend::isMicroMips()` method (NFC) (PR #135581)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 13 19:17:49 PDT 2025
https://github.com/s-barannikov created https://github.com/llvm/llvm-project/pull/135581
The only use was removed by 4c892770.
>From 5d854e66243649cbe9898faf6579128ed4bd2d8b Mon Sep 17 00:00:00 2001
From: Sergei Barannikov <barannikov88 at gmail.com>
Date: Mon, 14 Apr 2025 05:15:49 +0300
Subject: [PATCH] [MC] Remove unused `MCAsmBackend::isMicroMips()` method (NFC)
The only use was removed by 4c892770.
---
llvm/include/llvm/MC/MCAsmBackend.h | 5 -----
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp | 8 --------
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h | 2 --
3 files changed, 15 deletions(-)
diff --git a/llvm/include/llvm/MC/MCAsmBackend.h b/llvm/include/llvm/MC/MCAsmBackend.h
index 710e84b05ee5d..1c9feef10a337 100644
--- a/llvm/include/llvm/MC/MCAsmBackend.h
+++ b/llvm/include/llvm/MC/MCAsmBackend.h
@@ -223,11 +223,6 @@ class MCAsmBackend {
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 5f7974ab6cae2..0c295997ab526 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<const MCSymbolELF>(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 9752615422b6a..1e8504aaf2aa2 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
@@ -54,8 +54,6 @@ class MipsAsmBackend : public MCAsmBackend {
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
More information about the llvm-commits
mailing list