mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
d7065a6d64
Migrate all callers of getOrCreateDatabases to either create their own CAS instances using createDatabases() or to use the ones stored in the CompilerInstance. Also forwards the instances into the ClangImporter and its various clang::CompilerInstance instances. Validated locally that this does not result in any additional calls to createDatabases across all the swift tests. In fact, there are fewer due to an improvement on the clange side, so I also checked that the overall reduction doesn't hide any issues. Looking at individual cas paths that are opened, which are per-test paths, there are none that open more than before.