[llvm] 47bdbb3 - Remove unused MCSection::empty
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 21 23:21:42 PST 2024
Author: Fangrui Song
Date: 2024-12-21T23:21:37-08:00
New Revision: 47bdbb31f7ca8ed5a81eca378f2de48cb8b28cf0
URL: https://github.com/llvm/llvm-project/commit/47bdbb31f7ca8ed5a81eca378f2de48cb8b28cf0
DIFF: https://github.com/llvm/llvm-project/commit/47bdbb31f7ca8ed5a81eca378f2de48cb8b28cf0.diff
LOG: Remove unused MCSection::empty
CurFragList->Head should be non-null, so empty() is not useful.
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 dcdcd094fa17bd..be50fd2bd21df0 100644
--- a/llvm/include/llvm/MC/MCSection.h
+++ b/llvm/include/llvm/MC/MCSection.h
@@ -181,7 +181,6 @@ class MCSection {
FragList *curFragList() const { return CurFragList; }
iterator begin() const { return iterator(CurFragList->Head); }
iterator end() const { return {}; }
- bool empty() const { return !CurFragList->Head; }
void dump() const;
More information about the llvm-commits
mailing list