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

@@ -1974,10 +1974,12 @@ ModuleFile::ModuleFile(llvm::OwningPtr<llvm::MemoryBuffer> &&input)
assert(scratch.empty());
SourcePaths.push_back(blobData);
break;
case input_block::IMPORTED_MODULE:
assert(scratch.empty());
Dependencies.push_back(blobData);
case input_block::IMPORTED_MODULE: {
bool exported;
input_block::ImportedModuleLayout::readRecord(scratch, exported);
Dependencies.push_back({blobData, exported});
break;
}
default:
// Unknown input kind, possibly for use by a future version of the
// module format.