@@ -225,7 +225,7 @@ static void printImports(raw_ostream &out,
225
225
// imports only if they are also SPI. First, list all implementation-only
226
226
// imports and filter them later.
227
227
llvm::SmallSet<ImportedModule, 4 , ImportedModule::Order> ioiImportSet;
228
- if (Opts.PrintSPIs && Opts.ExperimentalSPIImports ) {
228
+ if (Opts.PrintPrivateInterfaceContent && Opts.ExperimentalSPIImports ) {
229
229
230
230
SmallVector<ImportedModule, 4 > ioiImports, allImports;
231
231
M->getImportedModules (ioiImports,
@@ -246,7 +246,7 @@ static void printImports(raw_ostream &out,
246
246
247
247
// / Collect @_spiOnly imports that are not imported elsewhere publicly.
248
248
llvm::SmallSet<ImportedModule, 4 , ImportedModule::Order> spiOnlyImportSet;
249
- if (Opts.PrintSPIs ) {
249
+ if (Opts.PrintPrivateInterfaceContent ) {
250
250
SmallVector<ImportedModule, 4 > spiOnlyImports, otherImports;
251
251
M->getImportedModules (spiOnlyImports,
252
252
ModuleDecl::ImportFilterKind::SPIOnly);
@@ -305,7 +305,7 @@ static void printImports(raw_ostream &out,
305
305
if (publicImportSet.count (import ))
306
306
out << " @_exported " ;
307
307
308
- if (Opts.PrintSPIs ) {
308
+ if (Opts.PrintPrivateInterfaceContent ) {
309
309
// An import visible in the private swiftinterface only.
310
310
//
311
311
// In the long term, we want to print this attribute for consistency and
@@ -789,7 +789,8 @@ bool swift::emitSwiftInterface(raw_ostream &out,
789
789
printImports (out, Opts, M);
790
790
791
791
const PrintOptions printOptions = PrintOptions::printSwiftInterfaceFile (
792
- M, Opts.PreserveTypesAsWritten , Opts.PrintFullConvention , Opts.PrintSPIs ,
792
+ M, Opts.PreserveTypesAsWritten , Opts.PrintFullConvention ,
793
+ Opts.PrintPrivateInterfaceContent ,
793
794
Opts.AliasModuleNames , &aliasModuleNamesTargets);
794
795
InheritedProtocolCollector::PerTypeMap inheritedProtocolMap;
795
796
0 commit comments