Skip to content

Commit a98b486

Browse files
committed
isThunk -> isNilCheckThunk
Signed-off-by: Peter Rong <[email protected]>
1 parent 8fd859e commit a98b486

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/AST/Mangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class VarDecl;
4545
void mangleObjCMethodName(raw_ostream &OS, bool includePrefixByte,
4646
bool isInstanceMethod, StringRef ClassName,
4747
std::optional<StringRef> CategoryName,
48-
StringRef MethodName, bool isThunk);
48+
StringRef MethodName, bool isNilCheckThunk);
4949

5050
/// MangleContext - Context for tracking state which persists across multiple
5151
/// calls to the C++ name mangler.

clang/lib/AST/Mangle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using namespace clang;
3232
void clang::mangleObjCMethodName(raw_ostream &OS, bool includePrefixByte,
3333
bool isInstanceMethod, StringRef ClassName,
3434
std::optional<StringRef> CategoryName,
35-
StringRef MethodName, bool isThunk) {
35+
StringRef MethodName, bool isNilCheckThunk) {
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 (!isThunk)
47+
if (!isNilCheckThunk)
4848
OS << "_nonnull";
4949
}
5050
// FIXME: For blocks we currently mimic GCC's mangling scheme, which leaves

0 commit comments

Comments
 (0)