@@ -195,7 +195,7 @@ class IncludeTreeCollector : public DependencyFileGenerator {
195
195
class DependencyScanningAction : public tooling ::ToolAction {
196
196
public:
197
197
DependencyScanningAction (
198
- StringRef WorkingDirectory, DependencyScanningConsumerBase &Consumer,
198
+ StringRef WorkingDirectory, DependencyConsumer &Consumer,
199
199
const CASOptions &CASOpts,
200
200
llvm::IntrusiveRefCntPtr<DependencyScanningWorkerFilesystem> DepFS,
201
201
llvm::IntrusiveRefCntPtr<DependencyScanningCASFilesystem> DepCASFS,
@@ -315,8 +315,7 @@ class DependencyScanningAction : public tooling::ToolAction {
315
315
case ScanningOutputFormat::Tree:
316
316
ScanInstance.addDependencyCollector (
317
317
std::make_shared<DependencyConsumerForwarder>(
318
- std::move (Opts), WorkingDirectory,
319
- static_cast <DependencyConsumer &>(Consumer), EmitDependencyFile));
318
+ std::move (Opts), WorkingDirectory, Consumer, EmitDependencyFile));
320
319
break ;
321
320
case ScanningOutputFormat::IncludeTree: {
322
321
ScanInstance.addDependencyCollector (
@@ -328,8 +327,7 @@ class DependencyScanningAction : public tooling::ToolAction {
328
327
case ScanningOutputFormat::Full:
329
328
case ScanningOutputFormat::FullTree:
330
329
ScanInstance.addDependencyCollector (std::make_shared<ModuleDepCollector>(
331
- std::move (Opts), ScanInstance,
332
- static_cast <DependencyConsumer &>(Consumer),
330
+ std::move (Opts), ScanInstance, Consumer,
333
331
std::move (OriginalInvocation), OptimizeArgs));
334
332
break ;
335
333
}
@@ -372,7 +370,7 @@ class DependencyScanningAction : public tooling::ToolAction {
372
370
373
371
private:
374
372
StringRef WorkingDirectory;
375
- DependencyScanningConsumerBase &Consumer;
373
+ DependencyConsumer &Consumer;
376
374
const CASOptions &CASOpts;
377
375
llvm::IntrusiveRefCntPtr<DependencyScanningWorkerFilesystem> DepFS;
378
376
llvm::IntrusiveRefCntPtr<DependencyScanningCASFilesystem> DepCASFS;
@@ -452,8 +450,7 @@ runWithDiags(DiagnosticOptions *DiagOpts,
452
450
453
451
llvm::Error DependencyScanningWorker::computeDependencies (
454
452
StringRef WorkingDirectory, const std::vector<std::string> &CommandLine,
455
- DependencyScanningConsumerBase &Consumer,
456
- llvm::Optional<StringRef> ModuleName) {
453
+ DependencyConsumer &Consumer, llvm::Optional<StringRef> ModuleName) {
457
454
// Reset what might have been modified in the previous worker invocation.
458
455
RealFS->setCurrentWorkingDirectory (WorkingDirectory);
459
456
if (Files)
@@ -503,9 +500,8 @@ llvm::Error DependencyScanningWorker::computeDependencies(
503
500
504
501
void DependencyScanningWorker::computeDependenciesFromCompilerInvocation (
505
502
std::shared_ptr<CompilerInvocation> Invocation, StringRef WorkingDirectory,
506
- DependencyScanningConsumerBase &DepsConsumer,
507
- DiagnosticConsumer &DiagsConsumer, raw_ostream *VerboseOS,
508
- bool DiagGenerationAsCompilation) {
503
+ DependencyConsumer &DepsConsumer, DiagnosticConsumer &DiagsConsumer,
504
+ raw_ostream *VerboseOS, bool DiagGenerationAsCompilation) {
509
505
RealFS->setCurrentWorkingDirectory (WorkingDirectory);
510
506
511
507
// Adjust the invocation.
0 commit comments