mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Caching][NFC] Restructure CASOption in swift. NFC
Clean up how CASOptions are kept and passed inside swift to make the code more readable. Also avoid a copy of CAS configuration in ClangImporter.
This commit is contained in:
@@ -486,7 +486,7 @@ SerializedModuleLoaderBase::scanModuleFile(Twine modulePath, bool isFramework) {
|
||||
// of binary module dependencies. In the meantime, in non-CAS mode
|
||||
// loading clients will consume the `.h` files encoded in the `.swiftmodules`
|
||||
// directly.
|
||||
if (Ctx.ClangImporterOpts.CASOpts) {
|
||||
if (Ctx.CASOpts.EnableCaching) {
|
||||
importedHeaders.reserve(importedHeaderSet.size());
|
||||
llvm::transform(importedHeaderSet.keys(),
|
||||
std::back_inserter(importedHeaders),
|
||||
|
||||
Reference in New Issue
Block a user