[libunwind] 6408e6c - [libunwind] Add module maps for libunwind
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 26 22:39:50 PDT 2022
Author: Ian Anderson
Date: 2022-10-26T22:39:46-07:00
New Revision: 6408e6c99d42af3bf866f92931d1f17d97bb7d37
URL: https://github.com/llvm/llvm-project/commit/6408e6c99d42af3bf866f92931d1f17d97bb7d37
DIFF: https://github.com/llvm/llvm-project/commit/6408e6c99d42af3bf866f92931d1f17d97bb7d37.diff
LOG: [libunwind] Add module maps for libunwind
Add module maps for the libunwind headers. unwind_arm_ehabi.h and unwind_itanium.h aren't covered because they don't get installed on all platforms.
Reviewed By: #libunwind, MaskRay
Differential Revision: https://reviews.llvm.org/D135345
Added:
libunwind/include/libunwind.modulemap
libunwind/include/mach-o/compact_unwind_encoding.modulemap
Modified:
libunwind/include/CMakeLists.txt
Removed:
################################################################################
diff --git a/libunwind/include/CMakeLists.txt b/libunwind/include/CMakeLists.txt
index adf1766c44cbc..51065d68afd4e 100644
--- a/libunwind/include/CMakeLists.txt
+++ b/libunwind/include/CMakeLists.txt
@@ -1,7 +1,9 @@
set(files
__libunwind_config.h
libunwind.h
+ libunwind.modulemap
mach-o/compact_unwind_encoding.h
+ mach-o/compact_unwind_encoding.modulemap
unwind_arm_ehabi.h
unwind_itanium.h
unwind.h
diff --git a/libunwind/include/libunwind.modulemap b/libunwind/include/libunwind.modulemap
new file mode 100644
index 0000000000000..162fe1d279a3c
--- /dev/null
+++ b/libunwind/include/libunwind.modulemap
@@ -0,0 +1,10 @@
+module libunwind [system] {
+ header "libunwind.h"
+ export *
+}
+
+module unwind [system] {
+ header "__libunwind_config.h"
+ header "unwind.h"
+ export *
+}
diff --git a/libunwind/include/mach-o/compact_unwind_encoding.modulemap b/libunwind/include/mach-o/compact_unwind_encoding.modulemap
new file mode 100644
index 0000000000000..6eae657d31b5c
--- /dev/null
+++ b/libunwind/include/mach-o/compact_unwind_encoding.modulemap
@@ -0,0 +1,4 @@
+module MachO.compact_unwind_encoding [system] {
+ header "compact_unwind_encoding.h"
+ export *
+}
More information about the cfe-commits
mailing list