[llvm] [BOLT] Model emitted code sections in LongJmp layout (PR #218232)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 05:02:22 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,h -- bolt/include/bolt/Core/BinaryContext.h bolt/include/bolt/Core/BinaryEmitter.h bolt/include/bolt/Core/BinaryFunction.h bolt/include/bolt/Passes/LongJmp.h bolt/lib/Core/BinaryContext.cpp bolt/lib/Core/BinaryEmitter.cpp bolt/lib/Passes/LongJmp.cpp bolt/lib/Passes/ReorderFunctions.cpp bolt/lib/Rewrite/RewriteInstance.cpp --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/bolt/lib/Core/BinaryContext.cpp b/bolt/lib/Core/BinaryContext.cpp
index b692d5b9e..518865fc2 100644
--- a/bolt/lib/Core/BinaryContext.cpp
+++ b/bolt/lib/Core/BinaryContext.cpp
@@ -108,10 +108,10 @@ namespace llvm {
 namespace bolt {
 
 CodeSectionOrder::CodeSectionOrder(const BinaryContext &BC)
-    : CodeSectionOrder(
-          BC.getColdCodeSectionName(), BC.getHotTextMoverSectionName(),
-          BC.getMainCodeSectionName(), BC.getWarmCodeSectionName(), opts::HotText,
-          opts::HotFunctionsAtEnd) {}
+    : CodeSectionOrder(BC.getColdCodeSectionName(),
+                       BC.getHotTextMoverSectionName(),
+                       BC.getMainCodeSectionName(), BC.getWarmCodeSectionName(),
+                       opts::HotText, opts::HotFunctionsAtEnd) {}
 
 char BOLTError::ID = 0;
 

``````````

</details>


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


More information about the llvm-commits mailing list