[llvm] [TextAPI] Fixup symbol names of ivars from extensions (PR #83525)
Cyndy Ishida via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 21:15:21 PST 2024
https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/83525
None
>From d34aa4a144cc843ea29a5a5fc8930332839db57f Mon Sep 17 00:00:00 2001
From: Cyndy Ishida <cyndy_ishida at apple.com>
Date: Thu, 29 Feb 2024 21:08:13 -0800
Subject: [PATCH] [TextAPI] Fixup symbol names of ivars from extensions
---
llvm/include/llvm/TextAPI/Record.h | 2 ++
llvm/lib/TextAPI/RecordVisitor.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/llvm/include/llvm/TextAPI/Record.h b/llvm/include/llvm/TextAPI/Record.h
index 02af3098cc5a54..3b30e6c8c26762 100644
--- a/llvm/include/llvm/TextAPI/Record.h
+++ b/llvm/include/llvm/TextAPI/Record.h
@@ -156,6 +156,8 @@ class ObjCCategoryRecord : public ObjCContainerRecord {
: ObjCContainerRecord(Name, RecordLinkage::Unknown),
ClassToExtend(ClassToExtend) {}
+ StringRef getSuperClassName() const { return ClassToExtend; }
+
private:
StringRef ClassToExtend;
};
diff --git a/llvm/lib/TextAPI/RecordVisitor.cpp b/llvm/lib/TextAPI/RecordVisitor.cpp
index 3ff6bbd8bbcb26..d333b330922632 100644
--- a/llvm/lib/TextAPI/RecordVisitor.cpp
+++ b/llvm/lib/TextAPI/RecordVisitor.cpp
@@ -88,5 +88,5 @@ void SymbolConverter::visitObjCInterface(const ObjCInterfaceRecord &ObjCR) {
}
void SymbolConverter::visitObjCCategory(const ObjCCategoryRecord &Cat) {
- addIVars(Cat.getObjCIVars(), Cat.getName());
+ addIVars(Cat.getObjCIVars(), Cat.getSuperClassName());
}
More information about the llvm-commits
mailing list