mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModuleInterface: add a frontend flag to skip printing import statement corresponding to a module name.
Related: rdar://63465931
This commit is contained in:
@@ -225,6 +225,11 @@ static void printImports(raw_ostream &out,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (llvm::count(Opts.ModulesToSkipInPublicInterface,
|
||||
importedModule->getName().str())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
llvm::SmallSetVector<Identifier, 4> spis;
|
||||
M->lookupImportedSPIGroups(importedModule, spis);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user