@@ -458,7 +458,7 @@ class ObjcCategoryMerger {
458
458
const PointerListInfo &ptrList);
459
459
460
460
Defined *emitCategory (const ClassExtensionInfo &extInfo);
461
- Defined *emitCatListEntrySec (const std::string &forCateogryName ,
461
+ Defined *emitCatListEntrySec (const std::string &forCategoryName ,
462
462
const std::string &forBaseClassName,
463
463
ObjFile *objFile);
464
464
Defined *emitCategoryBody (const std::string &name, const Defined *nameSym,
@@ -878,7 +878,7 @@ void ObjcCategoryMerger::emitAndLinkPointerList(
878
878
879
879
// This method creates an __objc_catlist ConcatInputSection with a single slot
880
880
Defined *
881
- ObjcCategoryMerger::emitCatListEntrySec (const std::string &forCateogryName ,
881
+ ObjcCategoryMerger::emitCatListEntrySec (const std::string &forCategoryName ,
882
882
const std::string &forBaseClassName,
883
883
ObjFile *objFile) {
884
884
uint32_t sectionSize = target->wordSize ;
@@ -894,7 +894,7 @@ ObjcCategoryMerger::emitCatListEntrySec(const std::string &forCateogryName,
894
894
newCatList->parent = infoCategoryWriter.catListInfo .outputSection ;
895
895
896
896
std::string catSymName = " <__objc_catlist slot for merged category " ;
897
- catSymName += forBaseClassName + " (" + forCateogryName + " )>" ;
897
+ catSymName += forBaseClassName + " (" + forCategoryName + " )>" ;
898
898
899
899
Defined *catListSym = make<Defined>(
900
900
newStringData (catSymName.c_str ()), /* file=*/ objFile, newCatList,
@@ -1069,7 +1069,7 @@ void ObjcCategoryMerger::collectAndValidateCategoriesData() {
1069
1069
off += target->wordSize ) {
1070
1070
Defined *categorySym = tryGetDefinedAtIsecOffset (catListCisec, off);
1071
1071
assert (categorySym &&
1072
- " Failed to get a valid cateogry at __objc_catlit offset" );
1072
+ " Failed to get a valid category at __objc_catlit offset" );
1073
1073
1074
1074
// We only support ObjC categories (no swift + @objc)
1075
1075
// TODO: Support swift + @objc categories also
0 commit comments