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:
@@ -182,10 +182,11 @@ int modulewrap_main(ArrayRef<const char *> Args, const char *Argv0,
|
||||
LangOptions LangOpts;
|
||||
ClangImporterOptions ClangImporterOpts;
|
||||
symbolgraphgen::SymbolGraphOptions SymbolGraphOpts;
|
||||
CASOptions CASOpts;
|
||||
LangOpts.Target = Invocation.getTargetTriple();
|
||||
ASTContext &ASTCtx = *ASTContext::get(
|
||||
LangOpts, TypeCheckOpts, SILOpts, SearchPathOpts, ClangImporterOpts,
|
||||
SymbolGraphOpts, SrcMgr, Instance.getDiags(),
|
||||
SymbolGraphOpts, CASOpts, SrcMgr, Instance.getDiags(),
|
||||
llvm::makeIntrusiveRefCnt<llvm::vfs::OnDiskOutputBackend>());
|
||||
registerParseRequestFunctions(ASTCtx.evaluator);
|
||||
registerTypeCheckerRequestFunctions(ASTCtx.evaluator);
|
||||
|
||||
Reference in New Issue
Block a user