From 4ba3c5d92f397ede5c8475802ad2edb2aa482373 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 21 Nov 2022 10:53:10 -0500 Subject: [PATCH] [lld/ELF] Rename OPT_thinlto_jobs to OPT_thinlto_jobs_eq The flag ends with a `=`, so its name should end with `_eq`. No behavior change. --- lld/ELF/Driver.cpp | 2 +- lld/ELF/Options.td | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index dd332ad..f9792ac 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -1389,7 +1389,7 @@ static void readConfigs(opt::InputArgList &args) { parallel::strategy = hardware_concurrency(threads); config->thinLTOJobs = v; } - if (auto *arg = args.getLastArg(OPT_thinlto_jobs)) + if (auto *arg = args.getLastArg(OPT_thinlto_jobs_eq)) config->thinLTOJobs = arg->getValue(); config->threadCount = parallel::strategy.compute_thread_count(); diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 2a678ed..cd4a3b1 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -608,7 +608,7 @@ def thinlto_emit_imports_files: FF<"thinlto-emit-imports-files">; def thinlto_emit_index_files: FF<"thinlto-emit-index-files">; def thinlto_index_only: FF<"thinlto-index-only">; def thinlto_index_only_eq: JJ<"thinlto-index-only=">; -def thinlto_jobs: JJ<"thinlto-jobs=">, +def thinlto_jobs_eq: JJ<"thinlto-jobs=">, HelpText<"Number of ThinLTO jobs. Default to --threads=">; def thinlto_object_suffix_replace_eq: JJ<"thinlto-object-suffix-replace=">; def thinlto_prefix_replace_eq: JJ<"thinlto-prefix-replace=">; @@ -624,7 +624,7 @@ def plugin_opt_dwo_dir_eq: J<"plugin-opt=dwo_dir=">, def plugin_opt_emit_asm: F<"plugin-opt=emit-asm">, Alias, HelpText<"Alias for --lto-emit-asm">; def plugin_opt_emit_llvm: F<"plugin-opt=emit-llvm">; -def: J<"plugin-opt=jobs=">, Alias, HelpText<"Alias for --thinlto-jobs">; +def: J<"plugin-opt=jobs=">, Alias, HelpText<"Alias for --thinlto-jobs">; def: J<"plugin-opt=lto-partitions=">, Alias, HelpText<"Alias for --lto-partitions">; def plugin_opt_mcpu_eq: J<"plugin-opt=mcpu=">; def: F<"plugin-opt=new-pass-manager">, -- 2.7.4