Author: Heejin Ahn Date: 2023-11-29T18:03:58-08:00 New Revision: e88a2f123fa4843ae3782377668cf5741acc9121
URL: https://github.com/llvm/llvm-project/commit/e88a2f123fa4843ae3782377668cf5741acc9121 DIFF: https://github.com/llvm/llvm-project/commit/e88a2f123fa4843ae3782377668cf5741acc9121.diff LOG: [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. Added: Modified: libunwind/src/libunwind.cpp Removed: ################################################################################ diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp index 1bd18659b7860c0..cd610377b63de8d 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__ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits