[ModuleInterface] Print the @_spiOnly attribute without comments

This attribute was commented out in the private swiftinterface for
backwards compatibility with older compilers unaware of the attribute.
This scenario shouldn't be a problem anymore and without that attribute
some imports can raise errors. Let's print the attribute as it was
written in the sources without commenting it out.
This commit is contained in:
Alexis Laferrière
2023-03-09 15:24:36 -08:00
parent 5f8338f8ef
commit ab3bf3260f
2 changed files with 4 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ static void printImports(raw_ostream &out,
// compatible swiftinterfaces and we can live without
// checking the generate code for a while.
if (spiOnlyImportSet.count(import))
out << "/*@_spiOnly*/ ";
out << "@_spiOnly ";
// List of imported SPI groups for local use.
for (auto spiName : spis)