[lld] [LLD][MachO][NFC] Remove unused function (PR #119961)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 14 03:54:56 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld-macho
Author: Dmitry Chestnykh (chestnykh)
<details>
<summary>Changes</summary>
Host compiler (gcc-14) warns about unused function
---
Full diff: https://github.com/llvm/llvm-project/pull/119961.diff
1 Files Affected:
- (modified) lld/MachO/ObjC.cpp (-14)
``````````diff
diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp
index ff13e8eb4b5ce0..9b454c1e6ac4f3 100644
--- a/lld/MachO/ObjC.cpp
+++ b/lld/MachO/ObjC.cpp
@@ -442,10 +442,6 @@ class ObjcCategoryMerger {
PointerListInfo &ptrList,
SourceLanguage sourceLang);
- PointerListInfo parseProtocolListInfo(const ConcatInputSection *isec,
- uint32_t secOffset,
- SourceLanguage sourceLang);
-
bool parsePointerListInfo(const ConcatInputSection *isec, uint32_t secOffset,
PointerListInfo &ptrList);
@@ -719,16 +715,6 @@ void ObjcCategoryMerger::parseProtocolListInfo(
"Protocol list end offset does not match expected size");
}
-// Parse a protocol list and return the PointerListInfo for it
-ObjcCategoryMerger::PointerListInfo
-ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
- uint32_t secOffset,
- SourceLanguage sourceLang) {
- PointerListInfo ptrList;
- parseProtocolListInfo(isec, secOffset, ptrList, sourceLang);
- return ptrList;
-}
-
// Parse a pointer list that might be linked to ConcatInputSection at a given
// offset. This can be used for instance methods, class methods, instance props
// and class props since they have the same format.
``````````
</details>
https://github.com/llvm/llvm-project/pull/119961
More information about the llvm-commits
mailing list