File tree Expand file tree Collapse file tree 3 files changed +0
-18
lines changed Expand file tree Collapse file tree 3 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -915,10 +915,6 @@ class SwiftDependencyScanningService {
915
915
return Mapper->mapToString (Path);
916
916
}
917
917
918
- // / Wrap the filesystem on the specified `CompilerInstance` with a
919
- // / caching `DependencyScanningWorkerFilesystem`
920
- void overlaySharedFilesystemCacheForCompilation (CompilerInstance &Instance);
921
-
922
918
// / Setup caching service.
923
919
bool setupCachingDependencyScanningService (CompilerInstance &Instance);
924
920
private:
Original file line number Diff line number Diff line change @@ -480,17 +480,6 @@ SwiftDependencyTracker::createTreeFromDependencies() {
480
480
});
481
481
}
482
482
483
- void SwiftDependencyScanningService::overlaySharedFilesystemCacheForCompilation (
484
- CompilerInstance &Instance) {
485
- auto existingFS = Instance.getSourceMgr ().getFileSystem ();
486
- llvm::IntrusiveRefCntPtr<
487
- clang::tooling::dependencies::DependencyScanningWorkerFilesystem>
488
- depFS =
489
- new clang::tooling::dependencies::DependencyScanningWorkerFilesystem (
490
- getSharedFilesystemCache (), existingFS);
491
- Instance.getSourceMgr ().setFileSystem (depFS);
492
- }
493
-
494
483
bool SwiftDependencyScanningService::setupCachingDependencyScanningService (
495
484
CompilerInstance &Instance) {
496
485
if (!Instance.getInvocation ().getFrontendOptions ().EnableCaching )
Original file line number Diff line number Diff line change @@ -1448,8 +1448,6 @@ bool swift::dependencies::scanDependencies(CompilerInstance &instance) {
1448
1448
if (opts.ReuseDependencyScannerCache )
1449
1449
deserializeDependencyCache (instance, service);
1450
1450
1451
- // Wrap the filesystem with a caching `DependencyScanningWorkerFilesystem`
1452
- service.overlaySharedFilesystemCacheForCompilation (instance);
1453
1451
if (service.setupCachingDependencyScanningService (instance))
1454
1452
return true ;
1455
1453
@@ -1520,7 +1518,6 @@ bool swift::dependencies::batchScanDependencies(
1520
1518
// we have created
1521
1519
1522
1520
SwiftDependencyScanningService singleUseService;
1523
- singleUseService.overlaySharedFilesystemCacheForCompilation (instance);
1524
1521
if (singleUseService.setupCachingDependencyScanningService (instance))
1525
1522
return true ;
1526
1523
You can’t perform that action at this time.
0 commit comments