[lld] [ELF] Orphan placement: remove hasInputSections condition (PR #93761)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 23:16:38 PDT 2024
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 f85904868b282aa56c8bef90f169ca5ecd9957f8 1ba71322808422695b60eb232c2561d70a1094a0 -- lld/ELF/Writer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 6fafb19386..f5c587a44b 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -948,9 +948,7 @@ findOrphanPos(SmallVectorImpl<SectionCommand *>::iterator b,
if (!isa<OutputDesc>(*i))
return e;
- auto isOutputSec = [](SectionCommand *cmd) {
- return isa<OutputDesc>(cmd);
- };
+ auto isOutputSec = [](SectionCommand *cmd) { return isa<OutputDesc>(cmd); };
// If i's rank is larger, the orphan section can be placed before i.
//
``````````
</details>
https://github.com/llvm/llvm-project/pull/93761
More information about the llvm-commits
mailing list