[llvm] [BOLT] Don't create function entry points for unnamed symbols (PR #68977)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 04:25:54 PDT 2023
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 dbb9faedec5e28ab3f584f5e14d31e475ac268ac 3d346a4138d2edfddef726d9bd933eb15b70d5bd -- bolt/test/RISCV/unnamed-sym-no-entry.c bolt/lib/Rewrite/RewriteInstance.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/test/RISCV/unnamed-sym-no-entry.c b/bolt/test/RISCV/unnamed-sym-no-entry.c
index 57ba292fe..5d654026d 100644
--- a/bolt/test/RISCV/unnamed-sym-no-entry.c
+++ b/bolt/test/RISCV/unnamed-sym-no-entry.c
@@ -5,8 +5,9 @@
/// Verify that the binary indeed contains an unnamed symbol at _start
// RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=CHECK-ELF
-// CHECK-ELF-DAG: [[#%x,START:]] {{.*}} FUNC GLOBAL DEFAULT [[#%d,SECTION:]] _start{{$}}
-// CHECK-ELF-DAG: [[#%x,START]] {{.*}} NOTYPE LOCAL DEFAULT [[#SECTION]] {{$}}
+// CHECK-ELF-DAG: [[#%x,START:]] {{.*}} FUNC GLOBAL DEFAULT [[#%d,SECTION:]]
+// _start{{$}} CHECK-ELF-DAG: [[#%x,START]] {{.*}} NOTYPE LOCAL DEFAULT
+// [[#SECTION]] {{$}}
/// Verify that BOLT did not create an extra entry point for the unnamed symbol
// RUN: llvm-bolt -o %t.bolt %t --print-cfg | FileCheck %s
``````````
</details>
https://github.com/llvm/llvm-project/pull/68977
More information about the llvm-commits
mailing list