[lld] [LLD] dtNeeded name should consistent with soNames (PR #72857)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 03:58:51 PST 2023
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 4594d5bb3ac6772bb20e429bbb04842ef6eaea35 2fcaf6bb208f57e25f796e062fd1167174f7007a -- lld/ELF/InputFiles.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 05b9dc2d54..75dfa40eb7 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -1451,8 +1451,8 @@ template <class ELFT> void SharedFile::parse() {
// DSOs are uniquified not by filename but by soname.
DenseMap<CachedHashStringRef, SharedFile *>::iterator it;
bool wasInserted;
- std::tie(it, wasInserted) =
- symtab.soNames.try_emplace(CachedHashStringRef(path::filename(soName)), this);
+ std::tie(it, wasInserted) = symtab.soNames.try_emplace(
+ CachedHashStringRef(path::filename(soName)), this);
// If a DSO appears more than once on the command line with and without
// --as-needed, --no-as-needed takes precedence over --as-needed because a
``````````
</details>
https://github.com/llvm/llvm-project/pull/72857
More information about the llvm-commits
mailing list