@@ -457,7 +457,6 @@ static std::string
457457populateOutOfDateMap (InputInfoMap &map, llvm::sys::TimePoint<> &LastBuildTime,
458458 StringRef argsHashStr, const InputFileList &inputs,
459459 StringRef buildRecordPath,
460- const bool EnableSourceRangeDependencies,
461460 const bool ShowIncrementalBuildDecisions) {
462461 // Treat a missing file as "no previous build".
463462 auto buffer = llvm::MemoryBuffer::getFile (buildRecordPath);
@@ -916,18 +915,8 @@ Driver::buildCompilation(const ToolChain &TC,
916915 // REPL mode expects no input files, so suppress the error.
917916 SuppressNoInputFilesError = true ;
918917
919- const bool EnableSourceRangeDependencies =
920- ArgList->hasArg (options::OPT_enable_source_range_dependencies);
921- const bool CompareIncrementalSchemes =
922- ArgList->hasArg (options::OPT_driver_compare_incremental_schemes) ||
923- ArgList->hasArg (options::OPT_driver_compare_incremental_schemes_path);
924- const StringRef CompareIncrementalSchemesPath = ArgList->getLastArgValue (
925- options::OPT_driver_compare_incremental_schemes_path);
926-
927918 Optional<OutputFileMap> OFM = buildOutputFileMap (
928- *TranslatedArgList, workingDirectory,
929- /* addEntriesForSourceFileDependencies=*/ EnableSourceRangeDependencies ||
930- CompareIncrementalSchemes);
919+ *TranslatedArgList, workingDirectory);
931920
932921 if (Diags.hadAnyError ())
933922 return nullptr ;
@@ -960,7 +949,6 @@ Driver::buildCompilation(const ToolChain &TC,
960949 ? " no build record path"
961950 : populateOutOfDateMap (outOfDateMap, LastBuildTime, ArgsHash,
962951 Inputs, buildRecordPath,
963- EnableSourceRangeDependencies,
964952 ShowIncrementalBuildDecisions);
965953 // FIXME: Distinguish errors from "file removed", which is benign.
966954
@@ -1045,9 +1033,6 @@ Driver::buildCompilation(const ToolChain &TC,
10451033 OnlyOneDependencyFile,
10461034 VerifyFineGrainedDependencyGraphAfterEveryImport,
10471035 EmitFineGrainedDependencyDotFileAfterEveryImport,
1048- EnableSourceRangeDependencies,
1049- CompareIncrementalSchemes,
1050- CompareIncrementalSchemesPath,
10511036 EnableCrossModuleDependencies);
10521037 // clang-format on
10531038 }
@@ -1844,10 +1829,6 @@ Driver::computeCompilerMode(const DerivedArgList &Args,
18441829 options::OPT_disable_batch_mode,
18451830 false );
18461831
1847- // For best unparsed ranges, want non-batch mode, standard compile
1848- const Arg *ArgRequiringSinglePrimaryCompile =
1849- Args.getLastArg (options::OPT_enable_source_range_dependencies);
1850-
18511832 // AST dump doesn't work with `-wmo`. Since it's not common to want to dump
18521833 // the AST, we assume that's the priority and ignore `-wmo`, but we warn the
18531834 // user about this decision.
@@ -1867,9 +1848,6 @@ Driver::computeCompilerMode(const DerivedArgList &Args,
18671848 Diags.diagnose (SourceLoc (), diag::warn_ignoring_batch_mode,
18681849 ArgRequiringSingleCompile->getOption ().getPrefixedName ());
18691850 }
1870- if (ArgRequiringSinglePrimaryCompile)
1871- Diags.diagnose (SourceLoc (), diag::warn_ignoring_source_range_dependencies,
1872- ArgRequiringSingleCompile->getOption ().getPrefixedName ());
18731851 return OutputInfo::Mode::SingleCompile;
18741852 }
18751853
@@ -2371,8 +2349,7 @@ bool Driver::handleImmediateArgs(const ArgList &Args, const ToolChain &TC) {
23712349
23722350Optional<OutputFileMap>
23732351Driver::buildOutputFileMap (const llvm::opt::DerivedArgList &Args,
2374- StringRef workingDirectory,
2375- bool addEntriesForSourceFileDependencies) const {
2352+ StringRef workingDirectory) const {
23762353 const Arg *A = Args.getLastArg (options::OPT_output_file_map);
23772354 if (!A)
23782355 return None;
0 commit comments