[llvm] [BOLT] Add support for safe-icf (PR #116275)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 30 15:15:08 PST 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 911cee2fd086524517588a7bc8cffb88091612b4 4ace9bd7190366e94b3b19b7538e381484dbe97c --extensions cpp,h -- bolt/include/bolt/Core/BinaryContext.h bolt/include/bolt/Core/BinaryFunction.h bolt/include/bolt/Core/Relocation.h bolt/include/bolt/Passes/IdenticalCodeFolding.h bolt/lib/Core/BinaryContext.cpp bolt/lib/Core/BinaryFunction.cpp bolt/lib/Core/Relocation.cpp bolt/lib/Passes/IdenticalCodeFolding.cpp bolt/lib/Rewrite/BinaryPassManager.cpp bolt/lib/Rewrite/BoltDiff.cpp bolt/lib/Rewrite/RewriteInstance.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index 473d99c280..412697d288 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -3648,7 +3648,8 @@ void RewriteInstance::mapCodeSections(BOLTLinker::SectionMapper MapSection) {
return Section->getOutputAddress();
});
LLVM_DEBUG(dbgs() << "Code sections in the order of output:\n";
- for (const BinarySection *Section : CodeSections) dbgs()
+ for (const BinarySection *Section
+ : CodeSections) dbgs()
<< Section->getName() << '\n';);
uint64_t PaddingSize = 0; // size of padding required at the end
``````````
</details>
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list