Skip to content

Commit cb110ab

Browse files
committed
[libunwind][WebAssembly] Omit unused parts of libunwind.cpp for Wasm
Wasm doesn't use most of that file; Wasm does not allow access of system registers and those functionalities are provided from the VM.
1 parent eaffcc8 commit cb110ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libunwind/src/libunwind.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <sanitizer/asan_interface.h>
2727
#endif
2828

29-
#if !defined(__USING_SJLJ_EXCEPTIONS__)
29+
#if !defined(__USING_SJLJ_EXCEPTIONS__) || !defined(__USING_WASM_EXCEPTIONS__)
3030
#include "AddressSpace.hpp"
3131
#include "UnwindCursor.hpp"
3232

@@ -347,7 +347,8 @@ void __unw_remove_dynamic_eh_frame_section(unw_word_t eh_frame_start) {
347347
}
348348

349349
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
350-
#endif // !defined(__USING_SJLJ_EXCEPTIONS__)
350+
#endif // !defined(__USING_SJLJ_EXCEPTIONS__) ||
351+
// !defined(__USING_WASM_EXCEPTIONS__)
351352

352353
#ifdef __APPLE__
353354

0 commit comments

Comments
 (0)