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:
@@ -103,8 +103,10 @@ protected:
|
||||
ClangImporterOptions clangImpOpts;
|
||||
symbolgraphgen::SymbolGraphOptions symbolGraphOpts;
|
||||
SILOptions silOpts;
|
||||
CASOptions casOpts;
|
||||
auto ctx = ASTContext::get(langOpts, typecheckOpts, silOpts, searchPathOpts,
|
||||
clangImpOpts, symbolGraphOpts, sourceMgr, diags);
|
||||
clangImpOpts, symbolGraphOpts, casOpts,
|
||||
sourceMgr, diags);
|
||||
|
||||
ctx->addModuleInterfaceChecker(
|
||||
std::make_unique<ModuleInterfaceCheckerImpl>(*ctx, cacheDir,
|
||||
|
||||
Reference in New Issue
Block a user