Thread [exported] through TranslationUnit and the Serialization library.

This still doesn't do anything yet.

Swift SVN r7051
This commit is contained in:
Jordan Rose
2013-08-08 19:09:21 +00:00
parent 093a428ca9
commit a35f7cbd4b
9 changed files with 48 additions and 38 deletions

View File

@@ -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);
}
}