[Dependency Scanning] Handle binary module dependencies' Swift overlay dependencies

The code, previously, only properly handled such dependencies being a distinct category for Swift source and Swift textual dependency infos. Swift binary module dependencies must handle this similarly and this change adds the missing support for them. Recent refactor of the scanner also means that now Swift binary dependencies with Swift overlay dependencies may crash the scanner, and this change resolves this as well.

Resolves rdar://117088840
This commit is contained in:
Artem Chikin
2023-10-17 12:34:05 -07:00
parent 41dc466108
commit 9615729d0b
13 changed files with 122 additions and 34 deletions

View File

@@ -166,6 +166,7 @@ using SwiftBinaryModuleDetailsLayout =
FileIDField, // compiledModulePath
FileIDField, // moduleDocPath
FileIDField, // moduleSourceInfoPath
DependencyIDArrayIDField, // swiftOverlayDependencies
ImportArrayIDField, // headerImports
IsFrameworkField, // isFramework
IdentifierIDField // moduleCacheKey