[llvm] [BOLT] Fix relocations handling (PR #100890)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 27 12:22:13 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 09542052351380a455bb23a28df86b80db461eb2 4163340f469b2ddf2743ca7521136c97a682e553 --extensions cpp,c -- bolt/test/AArch64/build_id.c bolt/lib/Rewrite/RewriteInstance.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/test/AArch64/build_id.c b/bolt/test/AArch64/build_id.c
index bc7832afe5..01e433c7ca 100644
--- a/bolt/test/AArch64/build_id.c
+++ b/bolt/test/AArch64/build_id.c
@@ -17,12 +17,9 @@ struct build_id_note {
 
 extern const struct build_id_note build_id_note;
 
-__attribute__((noinline))
-char get_build_id() {
-    return build_id_note.hash[0];
-}
+__attribute__((noinline)) char get_build_id() { return build_id_note.hash[0]; }
 
 int main() {
-        get_build_id();
-        return 0;
+  get_build_id();
+  return 0;
 }

``````````

</details>


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


More information about the llvm-commits mailing list