[lld] 4ba3c5d - [lld/ELF] Rename OPT_thinlto_jobs to OPT_thinlto_jobs_eq
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 07:54:23 PST 2022
Author: Nico Weber
Date: 2022-11-21T10:54:12-05:00
New Revision: 4ba3c5d92f397ede5c8475802ad2edb2aa482373
URL: https://github.com/llvm/llvm-project/commit/4ba3c5d92f397ede5c8475802ad2edb2aa482373
DIFF: https://github.com/llvm/llvm-project/commit/4ba3c5d92f397ede5c8475802ad2edb2aa482373.diff
LOG: [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.
Added:
Modified:
lld/ELF/Driver.cpp
lld/ELF/Options.td
Removed:
################################################################################
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index dd332adfa9c55..f9792ac6b7483 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 2a678ede6da66..cd4a3b1c6d7c3 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<lto_emit_asm>, HelpText<"Alias for --lto-emit-asm">;
def plugin_opt_emit_llvm: F<"plugin-opt=emit-llvm">;
-def: J<"plugin-opt=jobs=">, Alias<thinlto_jobs>, HelpText<"Alias for --thinlto-jobs">;
+def: J<"plugin-opt=jobs=">, Alias<thinlto_jobs_eq>, HelpText<"Alias for --thinlto-jobs">;
def: J<"plugin-opt=lto-partitions=">, Alias<lto_partitions>, HelpText<"Alias for --lto-partitions">;
def plugin_opt_mcpu_eq: J<"plugin-opt=mcpu=">;
def: F<"plugin-opt=new-pass-manager">,
More information about the llvm-commits
mailing list