[llvm] 267eb81 - MCSection: Remove unused isEncoded
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 23:36:23 PDT 2025
Author: Fangrui Song
Date: 2025-07-28T23:36:19-07:00
New Revision: 267eb81d5b92294275881f149a9e6bc5b87c0546
URL: https://github.com/llvm/llvm-project/commit/267eb81d5b92294275881f149a9e6bc5b87c0546
DIFF: https://github.com/llvm/llvm-project/commit/267eb81d5b92294275881f149a9e6bc5b87c0546.diff
LOG: MCSection: Remove unused isEncoded
Added:
Modified:
llvm/include/llvm/MC/MCSection.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCSection.h b/llvm/include/llvm/MC/MCSection.h
index 1579fa6646c3c..3bd986f9b8182 100644
--- a/llvm/include/llvm/MC/MCSection.h
+++ b/llvm/include/llvm/MC/MCSection.h
@@ -149,23 +149,6 @@ class MCFragment {
MCFragment(const MCFragment &) = delete;
MCFragment &operator=(const MCFragment &) = delete;
- bool isEncoded() const {
- MCFragment::FragmentType Kind = getKind();
- switch (Kind) {
- default:
- return false;
- case MCFragment::FT_Relaxable:
- case MCFragment::FT_Data:
- case MCFragment::FT_Align:
- case MCFragment::FT_Dwarf:
- case MCFragment::FT_DwarfFrame:
- case MCFragment::FT_LEB:
- case MCFragment::FT_CVInlineLines:
- case MCFragment::FT_CVDefRange:
- return true;
- }
- }
-
MCFragment *getNext() const { return Next; }
FragmentType getKind() const { return Kind; }
More information about the llvm-commits
mailing list