[lld] [lld] NFC. Rename function to better reflect their implementation (PR #136625)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 15:24:27 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- lld/ELF/ICF.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/ICF.cpp b/lld/ELF/ICF.cpp
index fe18acc9b..79c145117 100644
--- a/lld/ELF/ICF.cpp
+++ b/lld/ELF/ICF.cpp
@@ -433,7 +433,8 @@ void ICF<ELFT>::forEachClassRange(size_t begin, size_t end,
// Call Fn on each equivalence class.
template <class ELFT>
-void ICF<ELFT>::parallelForEachClass(llvm::function_ref<void(size_t, size_t)> fn) {
+void ICF<ELFT>::parallelForEachClass(
+ llvm::function_ref<void(size_t, size_t)> fn) {
// If threading is disabled or the number of sections are
// too small to use threading, call Fn sequentially.
if (parallel::strategy.ThreadsRequested == 1 || sections.size() < 1024) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/136625
More information about the llvm-commits
mailing list