[lld] [lld][MachO] Add initializer and +load roots to temporal BP sorting (PR #212110)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 22:33:18 PDT 2026


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 origin/main HEAD --extensions cpp,inc,h -- lld/ELF/BPSectionOrderer.cpp lld/MachO/BPSectionOrderer.cpp lld/MachO/BPSectionOrderer.h lld/MachO/Config.h lld/MachO/Driver.cpp lld/MachO/ObjC.cpp lld/MachO/ObjC.h lld/MachO/SectionPriorities.cpp lld/include/lld/Common/BPSectionOrdererBase.inc --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/MachO/BPSectionOrderer.cpp b/lld/MachO/BPSectionOrderer.cpp
index a3daeec9b..32ead5ed2 100644
--- a/lld/MachO/BPSectionOrderer.cpp
+++ b/lld/MachO/BPSectionOrderer.cpp
@@ -12,8 +12,8 @@
 #include "OutputSegment.h"
 #include "Relocations.h"
 #include "Symbols.h"
-#include "Target.h"
 #include "SyntheticSections.h"
+#include "Target.h"
 #include "lld/Common/BPSectionOrdererBase.inc"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/STLExtras.h"

``````````

</details>


https://github.com/llvm/llvm-project/pull/212110


More information about the llvm-commits mailing list