aboutsummaryrefslogtreecommitdiff
path: root/libunwind/src
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2023-11-29 18:03:58 -0800
committerGitHub <noreply@github.com>2023-11-29 18:03:58 -0800
commite88a2f123fa4843ae3782377668cf5741acc9121 (patch)
tree41ff0346657d0cf41797f202cb26f2d5fd825cdb /libunwind/src
parentc57ef2c69846a3f69c9d1db61055ea3b7b5100c3 (diff)
downloadllvm-e88a2f123fa4843ae3782377668cf5741acc9121.zip
llvm-e88a2f123fa4843ae3782377668cf5741acc9121.tar.gz
llvm-e88a2f123fa4843ae3782377668cf5741acc9121.tar.bz2
[libunwind][WebAssembly] Omit unused parts of libunwind.cpp for Wasm (#73196)
Wasm doesn't use most of that file; Wasm does not allow access of system registers and those functionalities are provided from the VM.
Diffstat (limited to 'libunwind/src')
-rw-r--r--libunwind/src/libunwind.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp
index 1bd1865..cd61037 100644
--- a/libunwind/src/libunwind.cpp
+++ b/libunwind/src/libunwind.cpp
@@ -26,7 +26,7 @@
#include <sanitizer/asan_interface.h>
#endif
-#if !defined(__USING_SJLJ_EXCEPTIONS__)
+#if !defined(__USING_SJLJ_EXCEPTIONS__) || !defined(__USING_WASM_EXCEPTIONS__)
#include "AddressSpace.hpp"
#include "UnwindCursor.hpp"
@@ -347,7 +347,8 @@ void __unw_remove_dynamic_eh_frame_section(unw_word_t eh_frame_start) {
}
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
-#endif // !defined(__USING_SJLJ_EXCEPTIONS__)
+#endif // !defined(__USING_SJLJ_EXCEPTIONS__) ||
+ // !defined(__USING_WASM_EXCEPTIONS__)
#ifdef __APPLE__