[libcxx-commits] [PATCH] D73584: [libunwind] Add _Unwind_Personality_Fn typedef to unwind.h header

Markus Böck via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 28 14:34:45 PST 2020


zero9178 created this revision.
zero9178 added reviewers: phosek, smeenai.
zero9178 added a project: libc++.
Herald added subscribers: libcxx-commits, christof.
Herald added a reviewer: mclow.lists.

This patch adds the _Unwind_Personality_Fn typedef present in clangs Resource folder to libunwinds unwind.h header as well. The typedef was previously unavailable and caused build failures of libc++abi on windows when building cxa_personality.cpp with the LIBCXXABI_USE_LLVM_UNWINDER option turned on.

Would need someone to commit this for me if accepted.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73584

Files:
  libunwind/include/unwind.h


Index: libunwind/include/unwind.h
===================================================================
--- libunwind/include/unwind.h
+++ libunwind/include/unwind.h
@@ -158,6 +158,8 @@
        struct _Unwind_Context* context);
 #endif
 
+typedef __personality_routine _Unwind_Personality_Fn;
+
 #ifdef __cplusplus
 extern "C" {
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73584.240986.patch
Type: text/x-patch
Size: 335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200128/42c80ec6/attachment.bin>


More information about the libcxx-commits mailing list