[PATCH] D144323: [libunwind][Modules] Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module)
Ian Anderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 18 00:18:15 PST 2023
iana created this revision.
iana added reviewers: Bigcheese, ldionne.
Herald added subscribers: libcxx-commits, ributzka, kristof.beyls.
Herald added projects: libunwind, All.
Herald added a reviewer: libunwind.
iana requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module and use angle includes to include them.
Make unwind_arm_ehabi.h and unwind_itanium.h standalone headers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144323
Files:
libunwind/include/libunwind.modulemap
libunwind/include/unwind.h
libunwind/include/unwind_arm_ehabi.h
libunwind/include/unwind_itanium.h
Index: libunwind/include/unwind_itanium.h
===================================================================
--- libunwind/include/unwind_itanium.h
+++ libunwind/include/unwind_itanium.h
@@ -13,6 +13,12 @@
#ifndef __ITANIUM_UNWIND_H__
#define __ITANIUM_UNWIND_H__
+#include <__libunwind_config.h>
+
+#ifndef _LIBUNWIND_ARM_EHABI
+
+#include <stdint.h>
+
struct _Unwind_Context; // opaque
struct _Unwind_Exception; // forward declaration
typedef struct _Unwind_Exception _Unwind_Exception;
@@ -73,4 +79,6 @@
}
#endif
+#endif // !_LIBUNWIND_ARM_EHABI
+
#endif // __ITANIUM_UNWIND_H__
Index: libunwind/include/unwind_arm_ehabi.h
===================================================================
--- libunwind/include/unwind_arm_ehabi.h
+++ libunwind/include/unwind_arm_ehabi.h
@@ -13,6 +13,12 @@
#ifndef __ARM_EHABI_UNWIND_H__
#define __ARM_EHABI_UNWIND_H__
+#include <__libunwind_config.h>
+
+#ifdef _LIBUNWIND_ARM_EHABI
+
+#include <stdint.h>
+
typedef uint32_t _Unwind_State;
static const _Unwind_State _US_VIRTUAL_UNWIND_FRAME = 0;
@@ -167,4 +173,6 @@
}
#endif
+#endif // _LIBUNWIND_ARM_EHABI
+
#endif // __ARM_EHABI_UNWIND_H__
Index: libunwind/include/unwind.h
===================================================================
--- libunwind/include/unwind.h
+++ libunwind/include/unwind.h
@@ -56,9 +56,9 @@
typedef struct _Unwind_Context _Unwind_Context; // opaque
#if defined(_LIBUNWIND_ARM_EHABI)
-#include "unwind_arm_ehabi.h"
+#include <unwind_arm_ehabi.h>
#else
-#include "unwind_itanium.h"
+#include <unwind_itanium.h>
#endif
typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)
Index: libunwind/include/libunwind.modulemap
===================================================================
--- libunwind/include/libunwind.modulemap
+++ libunwind/include/libunwind.modulemap
@@ -6,5 +6,8 @@
module unwind [system] {
header "__libunwind_config.h"
header "unwind.h"
+ header "unwind_arm_ehabi.h"
+ header "unwind_itanium.h"
+
export *
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144323.498567.patch
Type: text/x-patch
Size: 1996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230218/86a714e0/attachment.bin>
More information about the llvm-commits
mailing list