[llvm] [llvm][Support] Enable dl_iterate_phdr support on OpenBSD and DragonFly (PR #125186)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 01:11:45 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 e6d16f93b329f2f9618d18d0b99c6060e206cf08 e15aef5faf90ff5d7e1c1a0c393c7dd492fd3503 --extensions inc -- llvm/lib/Support/Unix/Signals.inc
``````````

</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 61670a6e93..93ff1244f5 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -468,8 +468,8 @@ void llvm::sys::AddSignalHandler(sys::SignalHandlerCallback FnPtr,
 
 #if ENABLE_BACKTRACES && defined(HAVE_BACKTRACE) &&                            \
     (defined(__linux__) || defined(__FreeBSD__) ||                             \
-     defined(__FreeBSD_kernel__) || defined(__NetBSD__)                        \
-     defined(__OpenBSD__) || defined(__DragonFly__))
+     defined(__FreeBSD_kernel__) ||                                            \
+     defined(__NetBSD__) defined(__OpenBSD__) || defined(__DragonFly__))
 struct DlIteratePhdrData {
   void **StackTrace;
   int depth;

``````````

</details>


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


More information about the llvm-commits mailing list