From 1187d8a62ba288e2221731f1795fa184571cd854 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Tue, 31 Jan 2023 00:56:27 -0800 Subject: [PATCH] [libunwind][Modules] Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module) Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module and use angle includes to include them. Reviewed By: ldionne, #libunwind Differential Revision: https://reviews.llvm.org/D144323 --- libunwind/include/libunwind.modulemap | 3 +++ libunwind/include/unwind.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libunwind/include/libunwind.modulemap b/libunwind/include/libunwind.modulemap index 162fe1d279a3..775841ecb5f1 100644 --- a/libunwind/include/libunwind.modulemap +++ b/libunwind/include/libunwind.modulemap @@ -6,5 +6,8 @@ module libunwind [system] { module unwind [system] { header "__libunwind_config.h" header "unwind.h" + private textual header "unwind_arm_ehabi.h" + private textual header "unwind_itanium.h" + export * } diff --git a/libunwind/include/unwind.h b/libunwind/include/unwind.h index 26cdef22207e..b1775d3a3dec 100644 --- a/libunwind/include/unwind.h +++ b/libunwind/include/unwind.h @@ -56,9 +56,9 @@ typedef enum { typedef struct _Unwind_Context _Unwind_Context; // opaque #if defined(_LIBUNWIND_ARM_EHABI) -#include "unwind_arm_ehabi.h" +#include #else -#include "unwind_itanium.h" +#include #endif typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn)