File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -483,9 +483,6 @@ struct SILDeclRef {
483
483
return result;
484
484
}
485
485
486
- // / True is the decl ref references any kind of thunk.
487
- bool isAnyThunk () const ;
488
-
489
486
// / True if the decl ref references a thunk from a natively foreign
490
487
// / declaration to Swift calling convention.
491
488
bool isForeignToNativeThunk () const ;
Original file line number Diff line number Diff line change @@ -933,11 +933,6 @@ bool SILDeclRef::isBackDeployed() const {
933
933
return false ;
934
934
}
935
935
936
- bool SILDeclRef::isAnyThunk () const {
937
- return isForeignToNativeThunk () || isNativeToForeignThunk () ||
938
- isDistributedThunk () || isBackDeploymentThunk ();
939
- }
940
-
941
936
bool SILDeclRef::isForeignToNativeThunk () const {
942
937
// If this isn't a native entry-point, it's not a foreign-to-native thunk.
943
938
if (isForeign)
@@ -1101,7 +1096,7 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
1101
1096
// Use the SILGen name only for the original non-thunked, non-curried entry
1102
1097
// point.
1103
1098
if (auto NameA = getDecl ()->getAttrs ().getAttribute <SILGenNameAttr>())
1104
- if (!NameA->Name .empty () && !isAnyThunk ()) {
1099
+ if (!NameA->Name .empty () && !isThunk ()) {
1105
1100
return NameA->Name .str ();
1106
1101
}
1107
1102
You can’t perform that action at this time.
0 commit comments