Merge pull request #85547 from cachemeifyoucan/eng/PR-164903080

Revert "[Caching][NFC] Using llvm::cas::CASConfiguration"
This commit is contained in:
Steven Wu
2025-11-18 09:43:41 -08:00
committed by GitHub
9 changed files with 23 additions and 32 deletions

View File

@@ -32,7 +32,6 @@
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/CAS/CASConfiguration.h"
#include "llvm/CAS/CachingOnDiskFileSystem.h"
#include "llvm/Support/Mutex.h"
#include <optional>
@@ -1037,8 +1036,8 @@ using BridgeClangDependencyCallback = llvm::function_ref<ModuleDependencyInfo(
/// A carrier of state shared among possibly multiple invocations of the
/// dependency scanner.
class SwiftDependencyScanningService {
/// The CAS configuration created the Scanning Service if used.
std::optional<llvm::cas::CASConfiguration> CASConfig;
/// The CASOption created the Scanning Service if used.
std::optional<clang::CASOptions> CASOpts;
/// The persistent Clang dependency scanner service
std::optional<clang::tooling::dependencies::DependencyScanningService>

View File

@@ -20,7 +20,6 @@
#include "clang/CAS/CASOptions.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/CAS/CASConfiguration.h"
namespace swift {
@@ -38,8 +37,8 @@ public:
/// Import modules from CAS.
bool ImportModuleFromCAS = false;
/// CAS Configuration.
llvm::cas::CASConfiguration Config;
/// CASOptions
clang::CASOptions CASOpts;
/// Clang Include Trees.
std::string ClangIncludeTree;