[llvm] [BOLT] Use symbol table info in registerFragment (PR #89648)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 11:28:04 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 758d97dce0c669a0ba6927728b40030a76acb144 4245b120999b4a1c23a1bfcdb21eb72ec842a897 -- bolt/include/bolt/Rewrite/RewriteInstance.h bolt/include/bolt/Utils/NameResolver.h 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 dc2105d090..b1f32a5d4a 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -1478,7 +1478,7 @@ void RewriteInstance::registerFragments() {
     }
   }
 
-  for (auto &[ParentName, BF]: AmbiguousFragments) {
+  for (auto &[ParentName, BF] : AmbiguousFragments) {
     const uint64_t Address = BF->getAddress();
 
     // Get fragment's own symbol

``````````

</details>


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


More information about the llvm-commits mailing list