mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
ModuleInterface: Don't print imports for any bridging header
Bridging headers are incompatible with module interfaces, never print an import for it. This becomes much more an issue with the internal bridging header that can be used in library-evolution mode but still needs to be hidden from clients. rdar://171658976
This commit is contained in:
@@ -330,7 +330,8 @@ static void printImports(raw_ostream &out,
|
||||
|
||||
for (auto import : allImports) {
|
||||
auto importedModule = import.importedModule;
|
||||
if (importedModule->isOnoneSupportModule()) {
|
||||
if (importedModule->isOnoneSupportModule() ||
|
||||
importedModule->isClangHeaderImportModule()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user