@@ -947,7 +947,7 @@ Driver::buildCompilation(const ToolChain &TC,
947
947
948
948
// Construct the graph of Actions.
949
949
SmallVector<const Action *, 8 > TopLevelActions;
950
- buildActions (TopLevelActions, TC, OI, OFM ? OFM. getPointer () : nullptr ,
950
+ buildActions (TopLevelActions, TC, OI,
951
951
rebuildEverything ? nullptr : &outOfDateMap, *C);
952
952
953
953
if (Diags.hadAnyError ())
@@ -1662,7 +1662,6 @@ Driver::computeCompilerMode(const DerivedArgList &Args,
1662
1662
1663
1663
void Driver::buildActions (SmallVectorImpl<const Action *> &TopLevelActions,
1664
1664
const ToolChain &TC, const OutputInfo &OI,
1665
- const OutputFileMap *OFM,
1666
1665
const InputInfoMap *OutOfDateMap,
1667
1666
Compilation &C) const {
1668
1667
const DerivedArgList &Args = C.getArgs ();
@@ -2472,8 +2471,7 @@ Job *Driver::buildJobsForAction(Compilation &C, const JobAction *JA,
2472
2471
Output.get ());
2473
2472
2474
2473
if (OI.ShouldGenerateModule && isa<CompileJobAction>(JA))
2475
- chooseSwiftModuleOutputPath (C, OFM, OutputMap, workingDirectory,
2476
- Output.get ());
2474
+ chooseSwiftModuleOutputPath (C, OutputMap, workingDirectory, Output.get ());
2477
2475
2478
2476
if (OI.ShouldGenerateModule &&
2479
2477
(isa<CompileJobAction>(JA) || isa<MergeModuleJobAction>(JA)))
@@ -2659,7 +2657,6 @@ void Driver::computeMainOutput(
2659
2657
}
2660
2658
2661
2659
void Driver::chooseSwiftModuleOutputPath (Compilation &C,
2662
- const OutputFileMap *OFM,
2663
2660
const TypeToPathMap *OutputMap,
2664
2661
StringRef workingDirectory,
2665
2662
CommandOutput *Output) const {
0 commit comments