@@ -32,7 +32,7 @@ using namespace clang;
3232void clang::mangleObjCMethodName (raw_ostream &OS, bool includePrefixByte,
3333 bool isInstanceMethod, StringRef ClassName,
3434 std::optional<StringRef> CategoryName,
35- StringRef MethodName, bool isNilCheckThunk ) {
35+ StringRef MethodName, bool hasNilCheck ) {
3636 // \01+[ContainerName(CategoryName) SelectorName]
3737 if (includePrefixByte)
3838 OS << " \01 " ;
@@ -44,7 +44,7 @@ void clang::mangleObjCMethodName(raw_ostream &OS, bool includePrefixByte,
4444 OS << " " ;
4545 OS << MethodName;
4646 OS << ' ]' ;
47- if (!isNilCheckThunk )
47+ if (!hasNilCheck )
4848 OS << " _nonnull" ;
4949}
5050// FIXME: For blocks we currently mimic GCC's mangling scheme, which leaves
@@ -347,7 +347,7 @@ void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD,
347347 raw_ostream &OS,
348348 bool includePrefixByte,
349349 bool includeCategoryNamespace,
350- bool isThunk ) const {
350+ bool hasNilCheck ) const {
351351 if (getASTContext ().getLangOpts ().ObjCRuntime .isGNUFamily ()) {
352352 // This is the mangling we've always used on the GNU runtimes, but it
353353 // has obvious collisions in the face of underscores within class
@@ -400,7 +400,7 @@ void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD,
400400 llvm::raw_string_ostream MethodNameOS (MethodName);
401401 MD->getSelector ().print (MethodNameOS);
402402 clang::mangleObjCMethodName (OS, includePrefixByte, MD->isInstanceMethod (),
403- ClassName, CategoryName, MethodName, isThunk );
403+ ClassName, CategoryName, MethodName, hasNilCheck );
404404}
405405
406406void MangleContext::mangleObjCMethodNameAsSourceName (const ObjCMethodDecl *MD,
0 commit comments