mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user