[Dependency Scanning] Add a binary serialization format for the Inter-Module Dependencies Cache

- Adds serialization format based on the LLVM Bitcode File Format (https://llvm.org/docs/BitCodeFormat.html).
- Adds Serialization and Deserialization code.
This commit is contained in:
Artem Chikin
2021-05-21 10:46:19 -07:00
parent 8978efb4b2
commit 14229f13b0
18 changed files with 1264 additions and 16 deletions

View File

@@ -124,7 +124,7 @@ ErrorOr<ModuleDependencies> ModuleDependencyScanner::scanInterfaceFile(
std::string InPath = moduleInterfacePath.str();
auto compiledCandidates = getCompiledCandidates(Ctx, moduleName.str(),
InPath);
Result = ModuleDependencies::forSwiftInterface(InPath,
Result = ModuleDependencies::forSwiftTextualModule(InPath,
compiledCandidates,
Args,
PCMArgs,