[llvm] 7778a19 - [MC] Remove unused `MCAsmBackend::isMicroMips()` method (NFC) (#135581)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 13 20:20:50 PDT 2025
Author: Sergei Barannikov
Date: 2025-04-14T06:20:46+03:00
New Revision: 7778a197e65ad1b0cae794318870d41d8c59a3fb
URL: https://github.com/llvm/llvm-project/commit/7778a197e65ad1b0cae794318870d41d8c59a3fb
DIFF: https://github.com/llvm/llvm-project/commit/7778a197e65ad1b0cae794318870d41d8c59a3fb.diff
LOG: [MC] Remove unused `MCAsmBackend::isMicroMips()` method (NFC) (#135581)
The only use was removed by 4c892770.
Added:
Modified:
llvm/include/llvm/MC/MCAsmBackend.h
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
Removed:
################################################################################
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