Skip to content

Commit 346766e

Browse files
authored
[TextAPI] Fixup symbol names of ivars from extensions (#83525)
1 parent 8116dfb commit 346766e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/include/llvm/TextAPI/Record.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class ObjCCategoryRecord : public ObjCContainerRecord {
156156
: ObjCContainerRecord(Name, RecordLinkage::Unknown),
157157
ClassToExtend(ClassToExtend) {}
158158

159+
StringRef getSuperClassName() const { return ClassToExtend; }
160+
159161
private:
160162
StringRef ClassToExtend;
161163
};

llvm/lib/TextAPI/RecordVisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ void SymbolConverter::visitObjCInterface(const ObjCInterfaceRecord &ObjCR) {
8888
}
8989

9090
void SymbolConverter::visitObjCCategory(const ObjCCategoryRecord &Cat) {
91-
addIVars(Cat.getObjCIVars(), Cat.getName());
91+
addIVars(Cat.getObjCIVars(), Cat.getSuperClassName());
9292
}

0 commit comments

Comments
 (0)