diff --git a/include/swift/AST/SILOptions.h b/include/swift/AST/SILOptions.h index ac41b9e6aac0f..36f53e7069e03 100644 --- a/include/swift/AST/SILOptions.h +++ b/include/swift/AST/SILOptions.h @@ -188,9 +188,7 @@ class SILOptions { return OptMode > OptimizationMode::NoOptimization; } - bool hasMultipleIRGenThreads() const { return NumThreads > 1; } - bool shouldPerformIRGenerationInParallel() const { return NumThreads != 0; } - bool hasMultipleIGMs() const { return hasMultipleIRGenThreads(); } + bool shouldPerformIRGenerationInParallel() const { return NumThreads > 1; } }; } // end namespace swift diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 46bdf5c5f0d8d..8c549141af06d 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1204,7 +1204,7 @@ static bool ParseTBDGenArgs(TBDGenOptions &Opts, ArgList &Args, CompilerInvocation &Invocation) { using namespace options; - Opts.HasMultipleIGMs = Invocation.getSILOptions().hasMultipleIGMs(); + Opts.HasMultipleIGMs = Invocation.getSILOptions().shouldPerformIRGenerationInParallel(); if (const Arg *A = Args.getLastArg(OPT_module_link_name)) { Opts.ModuleLinkName = A->getValue();