@@ -3247,13 +3247,6 @@ suppressingFeatureSendingArgsAndResults(PrintOptions &options,
32473247 action ();
32483248}
32493249
3250- static void
3251- suppressingFeatureBitwiseCopyable2 (PrintOptions &options,
3252- llvm::function_ref<void ()> action) {
3253- llvm::SaveAndRestore<bool > scope (options.SuppressBitwiseCopyable , true );
3254- action ();
3255- }
3256-
32573250static void
32583251suppressingFeatureIsolatedDeinit (PrintOptions &options,
32593252 llvm::function_ref<void ()> action) {
@@ -3604,28 +3597,17 @@ void PrintAST::visitOpaqueTypeDecl(OpaqueTypeDecl *decl) {
36043597
36053598void PrintAST::visitTypeAliasDecl (TypeAliasDecl *decl) {
36063599 auto name = decl->getName ();
3607- bool suppressingBitwiseCopyable =
3608- Options.SuppressBitwiseCopyable &&
3609- decl->getModuleContext ()->isStdlibModule () &&
3610- (decl->getNameStr () == " _BitwiseCopyable" );
3611- if (suppressingBitwiseCopyable) {
3612- name = decl->getASTContext ().getIdentifier (" BitwiseCopyable" );
3613- }
36143600 printDocumentationComment (decl);
36153601 printAttributes (decl);
36163602 printAccess (decl);
36173603 Printer.printIntroducerKeyword (" typealias" , Options, " " );
36183604 printContextIfNeeded (decl);
3619- recordDeclLoc (decl,
3620- [&]{
3621- Printer.printName (name, getTypeMemberPrintNameContext (decl));
3622- }, [&]{ // Signature
3623- printGenericDeclGenericParams (decl);
3624- });
3625- if (suppressingBitwiseCopyable) {
3626- Printer << " = Swift._BitwiseCopyable" ;
3627- return ;
3628- }
3605+ recordDeclLoc (
3606+ decl,
3607+ [&] { Printer.printName (name, getTypeMemberPrintNameContext (decl)); },
3608+ [&] { // Signature
3609+ printGenericDeclGenericParams (decl);
3610+ });
36293611 bool ShouldPrint = true ;
36303612 Type Ty = decl->getUnderlyingType ();
36313613
@@ -3821,11 +3803,6 @@ void PrintAST::printPrimaryAssociatedTypes(ProtocolDecl *decl) {
38213803
38223804void PrintAST::visitProtocolDecl (ProtocolDecl *decl) {
38233805 auto name = decl->getName ();
3824- if (Options.SuppressBitwiseCopyable &&
3825- decl->getModuleContext ()->isStdlibModule () &&
3826- (decl->getNameStr () == " BitwiseCopyable" )) {
3827- name = decl->getASTContext ().getIdentifier (" _BitwiseCopyable" );
3828- }
38293806 printDocumentationComment (decl);
38303807 printAttributes (decl);
38313808 printAccess (decl);
0 commit comments