@@ -1392,49 +1392,30 @@ TypeCheckFunctionBodyRequest::readDependencySource(
1392
1392
// ----------------------------------------------------------------------------//
1393
1393
1394
1394
void swift::simple_display (llvm::raw_ostream &out,
1395
- const AttributedImport< ImportedModule> & import ) {
1395
+ const ImportedModule & module ) {
1396
1396
out << " import of " ;
1397
-
1398
- simple_display (out, import .module .importedModule );
1399
-
1400
- out << " [" ;
1401
- if (!import .module .accessPath .empty ()) {
1402
- out << " scoped(" ;
1403
- import .module .accessPath .print (out);
1404
- out << " )" ;
1397
+ if (!module .accessPath .empty ()) {
1398
+ module .accessPath .print (out);
1399
+ out << " in " ;
1405
1400
}
1406
- if (import .options .contains (ImportFlags::Exported))
1407
- out << " exported" ;
1408
- if (import .options .contains (ImportFlags::Testable))
1409
- out << " testable" ;
1410
- if (import .options .contains (ImportFlags::ImplementationOnly))
1411
- out << " implementation-only" ;
1412
- if (import .options .contains (ImportFlags::PrivateImport))
1413
- out << " private(" << import .sourceFileArg << " )" ;
1401
+ simple_display (out, module .importedModule );
1402
+ }
1414
1403
1415
- if ( import . options . contains (ImportFlags::SPIAccessControl)) {
1416
- out << " spi( " ;
1417
- llvm::interleaveComma ( import . spiGroups , out, [&out](Identifier name) {
1418
- simple_display (out, name);
1419
- } );
1420
- out << " ) " ;
1404
+ void swift::simple_display (llvm::raw_ostream &out,
1405
+ const UnloadedImportedModule & module ) {
1406
+ out << " import of " ;
1407
+ if (! module . getAccessPath (). empty ()) {
1408
+ module . getAccessPath (). print (out );
1409
+ out << " in " ;
1421
1410
}
1422
-
1423
- out << " ] " ;
1411
+ out << " unloaded " ;
1412
+ module . getModulePath (). print ( out) ;
1424
1413
}
1425
1414
1426
1415
void swift::simple_display (llvm::raw_ostream &out,
1427
- const AttributedImport<UnloadedImportedModule> &import ) {
1428
- out << " import of unloaded " ;
1429
-
1430
- import .module .getModulePath ().print (out);
1431
-
1416
+ const AttributedImport<std::tuple<>> &import ) {
1432
1417
out << " [" ;
1433
- if (!import .module .getAccessPath ().empty ()) {
1434
- out << " scoped(" ;
1435
- import .module .getAccessPath ().print (out);
1436
- out << " )" ;
1437
- }
1418
+
1438
1419
if (import .options .contains (ImportFlags::Exported))
1439
1420
out << " exported" ;
1440
1421
if (import .options .contains (ImportFlags::Testable))
0 commit comments