[ModuleInterface] Address review comments.

This commit is contained in:
Graydon Hoare
2018-10-31 00:20:25 -07:00
parent 4938b002b4
commit fd226ae761
6 changed files with 49 additions and 29 deletions

View File

@@ -41,6 +41,7 @@
#include "llvm/Bitcode/RecordLayout.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DJB.h"
#include "llvm/Support/EndianStream.h"
@@ -1040,10 +1041,10 @@ void Serializer::writeInputBlock(const SerializationOptions &options) {
SearchPath.emit(ScratchRecord, /*framework=*/false, /*system=*/false, path);
}
if (options.SerializeFileDependencies) {
for (auto const &dep : options.Dependencies) {
FileDependency.emit(ScratchRecord, dep);
}
for (auto const &dep : options.Dependencies) {
FileDependency.emit(ScratchRecord, dep.Size,
llvm::sys::toTimeT(dep.LastModTime),
dep.Path);
}
SmallVector<ModuleDecl::ImportedModule, 8> allImports;