[compiler-rt] [llvm] [ORC][Runtime] Add `dlupdate` for elf (PR #110406)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 28 22:27:20 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 75e08a527b716a11b3085a9ea4f5bed80c386323 52d66d8cf91fc880dc612013147a652957997051 --extensions cpp,h -- compiler-rt/lib/orc/dlfcn_wrapper.cpp compiler-rt/lib/orc/elfnix_platform.cpp compiler-rt/lib/orc/elfnix_platform.h llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index 8abc46b2a8..40904fdd3a 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -616,8 +616,7 @@ Error ORCPlatformSupport::initialize(orc::JITDylib &JD) {
StringRef WrapperToCall = "__orc_rt_jit_dlopen_wrapper";
bool dlupdate = false;
const Triple &TT = ES.getTargetTriple();
- if (TT.isOSBinFormatMachO() ||
- TT.isOSBinFormatELF()) {
+ if (TT.isOSBinFormatMachO() || TT.isOSBinFormatELF()) {
if (InitializedDylib.contains(&JD)) {
WrapperToCall = "__orc_rt_jit_dlupdate_wrapper";
dlupdate = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/110406
More information about the llvm-commits
mailing list