@@ -32,7 +32,7 @@ using namespace clang;
32
32
void clang::mangleObjCMethodName (raw_ostream &OS, bool includePrefixByte,
33
33
bool isInstanceMethod, StringRef ClassName,
34
34
std::optional<StringRef> CategoryName,
35
- StringRef MethodName, bool isNilCheckThunk ) {
35
+ StringRef MethodName, bool hasNilCheck ) {
36
36
// \01+[ContainerName(CategoryName) SelectorName]
37
37
if (includePrefixByte)
38
38
OS << " \01 " ;
@@ -44,7 +44,7 @@ void clang::mangleObjCMethodName(raw_ostream &OS, bool includePrefixByte,
44
44
OS << " " ;
45
45
OS << MethodName;
46
46
OS << ' ]' ;
47
- if (!isNilCheckThunk )
47
+ if (!hasNilCheck )
48
48
OS << " _nonnull" ;
49
49
}
50
50
// FIXME: For blocks we currently mimic GCC's mangling scheme, which leaves
@@ -347,7 +347,7 @@ void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD,
347
347
raw_ostream &OS,
348
348
bool includePrefixByte,
349
349
bool includeCategoryNamespace,
350
- bool isThunk ) const {
350
+ bool hasNilCheck ) const {
351
351
if (getASTContext ().getLangOpts ().ObjCRuntime .isGNUFamily ()) {
352
352
// This is the mangling we've always used on the GNU runtimes, but it
353
353
// has obvious collisions in the face of underscores within class
@@ -400,7 +400,7 @@ void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD,
400
400
llvm::raw_string_ostream MethodNameOS (MethodName);
401
401
MD->getSelector ().print (MethodNameOS);
402
402
clang::mangleObjCMethodName (OS, includePrefixByte, MD->isInstanceMethod (),
403
- ClassName, CategoryName, MethodName, isThunk );
403
+ ClassName, CategoryName, MethodName, hasNilCheck );
404
404
}
405
405
406
406
void MangleContext::mangleObjCMethodNameAsSourceName (const ObjCMethodDecl *MD,
0 commit comments