[llvm] [BOLT] Fix failing tests by refactoring access to FileNameEntry to make it DWARF version agnostic (PR #151401)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 20:03:07 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- bolt/test/X86/Inputs/dwarf5-two-cus-foo.cpp bolt/lib/Core/BinaryContext.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/test/X86/Inputs/dwarf5-two-cus-foo.cpp b/bolt/test/X86/Inputs/dwarf5-two-cus-foo.cpp
index 82ad17832..cfeabf0d5 100644
--- a/bolt/test/X86/Inputs/dwarf5-two-cus-foo.cpp
+++ b/bolt/test/X86/Inputs/dwarf5-two-cus-foo.cpp
@@ -1,5 +1,3 @@
 #include <cstdio>
 
-extern "C" void foo() {
-  printf("Hello from second CU!\n");
-}
+extern "C" void foo() { printf("Hello from second CU!\n"); }

``````````

</details>


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


More information about the llvm-commits mailing list