[libunwind] [libunwind] Add length info for dynamic .eh_frame registration (PR #77185)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 6 00:14:44 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 ba1f4c6c50205bb7c6937c236084987f8669191c 877f03067280873953d2f38f518301c02b4877e4 -- libunwind/src/libunwind.cpp libunwind/src/libunwind_ext.h
``````````

</details>

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

``````````diff
diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp
index 7d78d167b8..e57bf9504c 100644
--- a/libunwind/src/libunwind.cpp
+++ b/libunwind/src/libunwind.cpp
@@ -318,7 +318,8 @@ void __unw_remove_dynamic_fde(unw_word_t fde) {
   DwarfFDECache<LocalAddressSpace>::removeAllIn((LocalAddressSpace::pint_t)fde);
 }
 
-void __unw_add_dynamic_eh_frame_section(unw_word_t eh_frame_start, size_t length) {
+void __unw_add_dynamic_eh_frame_section(unw_word_t eh_frame_start,
+                                        size_t length) {
   // The eh_frame section start serves as the mh_group
   unw_word_t mh_group = eh_frame_start;
   CFI_Parser<LocalAddressSpace>::CIE_Info cieInfo;
diff --git a/libunwind/src/libunwind_ext.h b/libunwind/src/libunwind_ext.h
index 1bfb595c46..acc1551e14 100644
--- a/libunwind/src/libunwind_ext.h
+++ b/libunwind/src/libunwind_ext.h
@@ -55,7 +55,8 @@ extern void __unw_iterate_dwarf_unwind_cache(void (*func)(
 extern void __unw_add_dynamic_fde(unw_word_t fde);
 extern void __unw_remove_dynamic_fde(unw_word_t fde);
 
-extern void __unw_add_dynamic_eh_frame_section(unw_word_t eh_frame_start, size_t length);
+extern void __unw_add_dynamic_eh_frame_section(unw_word_t eh_frame_start,
+                                               size_t length);
 extern void __unw_remove_dynamic_eh_frame_section(unw_word_t eh_frame_start);
 
 #ifdef __APPLE__

``````````

</details>


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


More information about the cfe-commits mailing list