[clang] [LinkerWrapper] Fix resolution of weak symbols during LTO (PR #68215)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 4 06:00:55 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 ceec9a7874af2eea8b00b5616fad388ccfa2b4f3 0fec18f2f745b798fe48ce08c1441c3439d009a6 -- openmp/libomptarget/test/offloading/weak.c clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/libomptarget/test/offloading/weak.c b/openmp/libomptarget/test/offloading/weak.c
index b4f264cee7f2..e36a6e1fded3 100644
--- a/openmp/libomptarget/test/offloading/weak.c
+++ b/openmp/libomptarget/test/offloading/weak.c
@@ -1,6 +1,7 @@
 // RUN: %libomptarget-compile-generic -DA -c -o %t-a.o
 // RUN: %libomptarget-compile-generic -DB -c -o %t-b.o
-// RUN: %libomptarget-compile-generic %t-a.o %t-b.o && %libomptarget-run-generic | %fcheck-generic
+// RUN: %libomptarget-compile-generic %t-a.o %t-b.o && %libomptarget-run-generic
+// | %fcheck-generic
 
 #if defined(A)
 __attribute__((weak)) int x = 999;

``````````

</details>


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


More information about the cfe-commits mailing list