mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Thread [exported] through TranslationUnit and the Serialization library.
This still doesn't do anything yet. Swift SVN r7051
This commit is contained in:
@@ -562,12 +562,12 @@ void Serializer::writeInputFiles(const TranslationUnit *TU,
|
||||
}
|
||||
|
||||
for (auto import : TU->getImportedModules()) {
|
||||
if (import.second == TU->Ctx.TheBuiltinModule)
|
||||
if (import.first.second == TU->Ctx.TheBuiltinModule)
|
||||
continue;
|
||||
|
||||
ImportPathBlob importPath;
|
||||
flattenImportPath(import, importPath);
|
||||
ImportedModule.emit(ScratchRecord, importPath);
|
||||
flattenImportPath(import.first, importPath);
|
||||
ImportedModule.emit(ScratchRecord, import.second, importPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user