diff options
-rw-r--r-- | llvm/include/llvm/TextAPI/Record.h | 2 | ||||
-rw-r--r-- | llvm/lib/TextAPI/RecordVisitor.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/TextAPI/Record.h b/llvm/include/llvm/TextAPI/Record.h index 02af309..3b30e6c 100644 --- a/llvm/include/llvm/TextAPI/Record.h +++ b/llvm/include/llvm/TextAPI/Record.h @@ -156,6 +156,8 @@ public: : 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 3ff6bbd..d333b33 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()); } |