@@ -674,17 +674,14 @@ getDriverBatchCount(llvm::opt::InputArgList &ArgList,
674
674
675
675
static bool computeIncremental (const llvm::opt::InputArgList *ArgList,
676
676
const bool ShowIncrementalBuildDecisions) {
677
- {
678
- const bool WasIncrementalRequested =
679
- ArgList->hasArg (options::OPT_incremental);
680
- if (!WasIncrementalRequested)
681
- return false ;
682
- }
677
+ if (!ArgList->hasArg (options::OPT_incremental))
678
+ return false ;
679
+
683
680
const char *ReasonToDisable =
684
681
ArgList->hasArg (options::OPT_whole_module_optimization)
685
682
? " is not compatible with whole module optimization."
686
683
: ArgList->hasArg (options::OPT_embed_bitcode)
687
- ? " is not currently compatible with embedding LLVM IR bitcode"
684
+ ? " is not currently compatible with embedding LLVM IR bitcode. "
688
685
: nullptr ;
689
686
690
687
if (!ReasonToDisable)
@@ -709,9 +706,9 @@ computeWorkingDirectory(const llvm::opt::InputArgList *ArgList) {
709
706
}
710
707
711
708
static std::unique_ptr<UnifiedStatsReporter>
712
- computeStatsReporter (const llvm::opt::InputArgList *ArgList,
713
- const InputFileList &Inputs, const OutputInfo OI,
714
- StringRef DefaultTargetTriple) {
709
+ createStatsReporter (const llvm::opt::InputArgList *ArgList,
710
+ const InputFileList &Inputs, const OutputInfo OI,
711
+ StringRef DefaultTargetTriple) {
715
712
const Arg *A = ArgList->getLastArgNoClaim (options::OPT_stats_output_dir);
716
713
if (!A)
717
714
return nullptr ;
@@ -886,7 +883,7 @@ Driver::buildCompilation(const ToolChain &TC,
886
883
const bool ShowDriverTimeCompilation =
887
884
ArgList->hasArg (options::OPT_driver_time_compilation);
888
885
std::unique_ptr<UnifiedStatsReporter> StatsReporter =
889
- computeStatsReporter (ArgList.get (), Inputs, OI, DefaultTargetTriple);
886
+ createStatsReporter (ArgList.get (), Inputs, OI, DefaultTargetTriple);
890
887
891
888
C = llvm::make_unique<Compilation>(
892
889
Diags, TC, OI, Level,
0 commit comments