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:
Alexis Laferrière
2026-03-03 14:59:16 -08:00
parent 403ff70075
commit 9147d1af22
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -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;
}