[lld] [lld-macho][ObjC] Implement category merging into base class (PR #92448)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 18:56:15 PDT 2024
================
@@ -379,12 +379,21 @@ class ObjcCategoryMerger {
InfoWriteSection catPtrListInfo;
};
- // Information about a pointer list in the original categories (method lists,
- // protocol lists, etc)
+ // Information about a pointer list in the original categories or class(method
+ // lists, protocol lists, etc)
struct PointerListInfo {
+ PointerListInfo() = default;
+ PointerListInfo(const PointerListInfo &) = default;
PointerListInfo(const char *_categoryPrefix, uint32_t _pointersPerStruct)
: categoryPrefix(_categoryPrefix),
pointersPerStruct(_pointersPerStruct) {}
+
+ inline bool operator==(const PointerListInfo &cmp) {
----------------
kyulee-com wrote:
Oh. I missed that part. btw, what about `categoryPrefix`? doesn't it matter?
Anyhow, overall I don't feel we need this operator overloading just for an assertion, and wonder if we can inline them somehow for an assertion.
https://github.com/llvm/llvm-project/pull/92448
More information about the llvm-commits
mailing list