[Openmp-commits] [openmp] [libomptarget] Support BE ELF files in plugins-nextgen (PR #83976)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Mar 5 01:02:55 PST 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 ff66e9b7e2fad71d1c65e884d6f94fb6ea5bdc21 35cdcd752bc10ef1920eca83b35161259a84fa70 -- openmp/libomptarget/plugins-nextgen/common/include/GlobalHandler.h openmp/libomptarget/plugins-nextgen/common/include/Utils/ELF.h openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp b/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp
index ae1f55a305..d3c883ce7d 100644
--- a/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp
@@ -98,7 +98,6 @@ Error GenericGlobalHandlerTy::getGlobalMetadataFromImage(
return Plugin::error("Failed to find global symbol '%s' in the ELF image",
ImageGlobal.getName().data());
-
// Setup the global symbol's address and size.
ImageGlobal.setPtr((void *)(SymOrErr->data()));
ImageGlobal.setSize(SymOrErr->size());
``````````
</details>
https://github.com/llvm/llvm-project/pull/83976
More information about the Openmp-commits
mailing list