mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -835,7 +835,7 @@ swiftscan_cache_replay_instance_create(int argc, const char **argv,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!Instance->Invocation.getFrontendOptions().EnableCaching) {
|
||||
if (!Instance->Invocation.getCASOptions().EnableCaching) {
|
||||
delete Instance;
|
||||
*error = swift::c_string_utils::create_clone(
|
||||
"caching is not enabled from command-line");
|
||||
@@ -955,7 +955,7 @@ static llvm::Error replayCompilation(SwiftScanReplayInstance &Instance,
|
||||
Outputs.try_emplace(file_types::TY_CachedDiagnostics, "<cached-diagnostics>");
|
||||
|
||||
// Load all the output buffer.
|
||||
bool Remarks = Instance.Invocation.getFrontendOptions().EnableCachingRemarks;
|
||||
bool Remarks = Instance.Invocation.getCASOptions().EnableCachingRemarks;
|
||||
struct OutputEntry {
|
||||
std::string Path;
|
||||
llvm::cas::ObjectProxy Proxy;
|
||||
|
||||
Reference in New Issue
Block a user