mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -118,6 +118,11 @@ void ModuleDependencies::addBridgingSourceFile(StringRef bridgingSourceFile) {
|
||||
swiftStorage->bridgingSourceFiles.push_back(bridgingSourceFile.str());
|
||||
}
|
||||
|
||||
void ModuleDependencies::addSourceFile(StringRef sourceFile) {
|
||||
auto swiftStorage = cast<SwiftTextualModuleDependenciesStorage>(storage.get());
|
||||
swiftStorage->sourceFiles.push_back(sourceFile.str());
|
||||
}
|
||||
|
||||
/// Add (Clang) module on which the bridging header depends.
|
||||
void ModuleDependencies::addBridgingModuleDependency(
|
||||
StringRef module, llvm::StringSet<> &alreadyAddedModules) {
|
||||
|
||||
Reference in New Issue
Block a user