File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ class ASTMangler : public Mangler {
186
186
Type GlobalActorBound,
187
187
ModuleDecl *Module);
188
188
189
+ std::string mangleDistributedThunk (const FuncDecl *thunk);
190
+
189
191
// / Mangle a completion handler block implementation function, used for importing ObjC
190
192
// / APIs as async.
191
193
// /
Original file line number Diff line number Diff line change @@ -3457,3 +3457,11 @@ ASTMangler::mangleOpaqueTypeDescriptorRecord(const OpaqueTypeDecl *decl) {
3457
3457
appendOperator (" Ho" );
3458
3458
return finalize ();
3459
3459
}
3460
+
3461
+ std::string ASTMangler::mangleDistributedThunk (const FuncDecl *thunk) {
3462
+ // Marker protocols cannot be checked at runtime, so there is no point
3463
+ // in recording them for distributed thunks.
3464
+ llvm::SaveAndRestore<bool > savedAllowMarkerProtocols (AllowMarkerProtocols,
3465
+ false );
3466
+ return mangleEntity (thunk, SymbolKind::DistributedThunk);
3467
+ }
You can’t perform that action at this time.
0 commit comments