[lld] [lld] Merge equivalent symbols found during ICF (PR #134342)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 16 13:25:15 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,h -- lld/ELF/ICF.cpp lld/ELF/SymbolTable.cpp lld/ELF/SymbolTable.h
``````````
</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 6ab0bcd0b..330fdba91 100644
--- a/lld/ELF/ICF.cpp
+++ b/lld/ELF/ICF.cpp
@@ -602,7 +602,8 @@ template <class ELFT> void ICF<ELFT>::run() {
fold(sym);
auto it = symbolEquivalence.findLeader(sym);
if (it != symbolEquivalence.member_end() && *it != sym) {
- print() << "redirecting '" << sym->getName() << "' in symtab to '" << (*it)->getName() << "'";
+ print() << "redirecting '" << sym->getName() << "' in symtab to '"
+ << (*it)->getName() << "'";
ctx.symtab->redirect(sym, *it);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/134342
More information about the llvm-commits
mailing list