[llvm] [CMake] Remove HAVE_DLFCN_H and HAVE_DLADDR (PR #123879)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 20:57:30 PST 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 05861b39bafc9932d0acf5a5ca16aef2852539c5 557131454ba86288c6be3b186d612fd75c77d4ec --extensions inc,cpp,h -- llvm/lib/Support/Unix/DynamicLibrary.inc llvm/lib/Support/Unix/Path.inc llvm/lib/Support/Unix/Signals.inc llvm/lib/Support/Unix/Unix.h llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index b840ec69c0..2d9265718a 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -50,9 +50,9 @@
 #ifdef HAVE_BACKTRACE
 #include BACKTRACE_HEADER // For backtrace().
 #endif
+#include <dlfcn.h>
 #include <signal.h>
 #include <sys/stat.h>
-#include <dlfcn.h>
 #if HAVE_MACH_MACH_H
 #include <mach/mach.h>
 #endif

``````````

</details>


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


More information about the llvm-commits mailing list