Skip to content

Commit

Permalink
[lld/mac] Fix (adorable!) typo to cycle bots
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Apr 15, 2024
1 parent b7b1833 commit 3eb0973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lld/MachO/ObjC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class ObjcCategoryMerger {
const PointerListInfo &ptrList);

Defined *emitCategory(const ClassExtensionInfo &extInfo);
Defined *emitCatListEntrySec(const std::string &forCateogryName,
Defined *emitCatListEntrySec(const std::string &forCategoryName,
const std::string &forBaseClassName,
ObjFile *objFile);
Defined *emitCategoryBody(const std::string &name, const Defined *nameSym,
Expand Down Expand Up @@ -878,7 +878,7 @@ void ObjcCategoryMerger::emitAndLinkPointerList(

// This method creates an __objc_catlist ConcatInputSection with a single slot
Defined *
ObjcCategoryMerger::emitCatListEntrySec(const std::string &forCateogryName,
ObjcCategoryMerger::emitCatListEntrySec(const std::string &forCategoryName,
const std::string &forBaseClassName,
ObjFile *objFile) {
uint32_t sectionSize = target->wordSize;
Expand All @@ -894,7 +894,7 @@ ObjcCategoryMerger::emitCatListEntrySec(const std::string &forCateogryName,
newCatList->parent = infoCategoryWriter.catListInfo.outputSection;

std::string catSymName = "<__objc_catlist slot for merged category ";
catSymName += forBaseClassName + "(" + forCateogryName + ")>";
catSymName += forBaseClassName + "(" + forCategoryName + ")>";

Defined *catListSym = make<Defined>(
newStringData(catSymName.c_str()), /*file=*/objFile, newCatList,
Expand Down Expand Up @@ -1069,7 +1069,7 @@ void ObjcCategoryMerger::collectAndValidateCategoriesData() {
off += target->wordSize) {
Defined *categorySym = tryGetDefinedAtIsecOffset(catListCisec, off);
assert(categorySym &&
"Failed to get a valid cateogry at __objc_catlit offset");
"Failed to get a valid category at __objc_catlit offset");

// We only support ObjC categories (no swift + @objc)
// TODO: Support swift + @objc categories also
Expand Down

0 comments on commit 3eb0973

Please sign in to comment.