@@ -545,7 +545,6 @@ static const ProtocolConformanceDescriptor *
545545swift_conformsToSwiftProtocolImpl (const Metadata * const type,
546546 const ProtocolDescriptor *protocol,
547547 StringRef module ) {
548- fprintf (stderr, " in impl2\n " );
549548 auto &C = Conformances.get ();
550549
551550 // See if we have a cached conformance. The ConcurrentMap data structure
@@ -572,25 +571,17 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
572571 C.cacheFailure (type, protocol, snapshot.count ());
573572 return nullptr ;
574573 }
575- fprintf (stderr, " got to really scan \n " );
574+
576575 // Really scan conformance records.
577576 for (size_t i = startIndex; i < endIndex; i++) {
578- fprintf (stderr, " index = %lx\n " , (unsigned long )i);
579577 auto §ion = snapshot.Start [i];
580578 // Eagerly pull records for nondependent witnesses into our cache.
581579 for (const auto &record : section) {
582- fprintf (stderr, " got a record\n " );
583- auto descriptorPtr = record.get ();
584- auto &descriptor = *descriptorPtr;
585- fprintf (stderr, " got the descriptor: %p\n " , descriptorPtr);
586- fprintf (stderr, " got the protocol: %p\n " , descriptor.getProtocol ());
587- descriptor.getProtocol ()->dump ();
588- fprintf (stderr, " got it\n " );
580+ auto &descriptor = *record.get ();
589581
590582 // We only care about conformances for this protocol.
591583 if (descriptor.getProtocol () != protocol)
592584 continue ;
593- fprintf (stderr, " about to get matching type\n " );
594585
595586 // If there's a matching type, record the positive result.
596587 ConformanceCandidate candidate (descriptor);
@@ -605,7 +596,6 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
605596 }
606597
607598 // Conformance scan is complete.
608- fprintf (stderr, " about to update cache\n " );
609599
610600 // Search the cache once more, and this time update the cache if necessary.
611601 FoundConformance = searchInConformanceCache (type, protocol);
@@ -620,21 +610,12 @@ swift_conformsToSwiftProtocolImpl(const Metadata * const type,
620610static const WitnessTable *
621611swift_conformsToProtocolImpl (const Metadata * const type,
622612 const ProtocolDescriptor *protocol) {
623- // WebAssembly: logging pls
624- fprintf (stderr, " swift_conformsToProtocolImpl: %p %p\n " , type, protocol);
625- protocol->dump ();
626- fprintf (stderr, " trying to dump the type now\n " );
627- type->dump ();
628- fprintf (stderr, " dumped the type\n " );
629- // end WebAssembly
630613 auto description =
631614 swift_conformsToSwiftProtocol (type, protocol, StringRef ());
632615 if (!description)
633616 return nullptr ;
634- description->getProtocol ()->dump ();
635617
636- auto retval = description->getWitnessTable (type);
637- return retval;
618+ return description->getWitnessTable (type);
638619}
639620
640621const ContextDescriptor *
0 commit comments