aboutsummaryrefslogtreecommitdiff
path: root/libunwind/src
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2024-05-21 21:01:36 -0700
committerGitHub <noreply@github.com>2024-05-21 21:01:36 -0700
commit64f640680f7b1ddc8d2015eac75865f231166f8c (patch)
tree2c2e6230c498e8ce0d6d06c9033d0ec23669ed51 /libunwind/src
parent97025bd9d5b32f984f07d6ae20a3ce6ddb3fbe2a (diff)
downloadllvm-64f640680f7b1ddc8d2015eac75865f231166f8c.zip
llvm-64f640680f7b1ddc8d2015eac75865f231166f8c.tar.gz
llvm-64f640680f7b1ddc8d2015eac75865f231166f8c.tar.bz2
[WebAssembly] __USING_WASM_EXCEPTIONS__ -> __WASM_EXCEPTIONS__ (#92840)
We've decided to change `__USING_WASM_EXCEPTIONS__` preprocessor to `__WASM_EXCEPTIONS__` given that it's more concise.
Diffstat (limited to 'libunwind/src')
-rw-r--r--libunwind/src/Unwind-wasm.c4
-rw-r--r--libunwind/src/libunwind.cpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/libunwind/src/Unwind-wasm.c b/libunwind/src/Unwind-wasm.c
index f7f39d3..b18b32c 100644
--- a/libunwind/src/Unwind-wasm.c
+++ b/libunwind/src/Unwind-wasm.c
@@ -14,7 +14,7 @@
#include "config.h"
-#ifdef __USING_WASM_EXCEPTIONS__
+#ifdef __WASM_EXCEPTIONS__
#include "unwind.h"
#include <threads.h>
@@ -120,4 +120,4 @@ _Unwind_GetRegionStart(struct _Unwind_Context *context) {
return 0;
}
-#endif // defined(__USING_WASM_EXCEPTIONS__)
+#endif // defined(__WASM_EXCEPTIONS__)
diff --git a/libunwind/src/libunwind.cpp b/libunwind/src/libunwind.cpp
index 7e5c6bd..cf39ec5 100644
--- a/libunwind/src/libunwind.cpp
+++ b/libunwind/src/libunwind.cpp
@@ -347,8 +347,7 @@ void __unw_remove_dynamic_eh_frame_section(unw_word_t eh_frame_start) {
}
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
-#endif // !defined(__USING_SJLJ_EXCEPTIONS__) &&
- // !defined(__wasm__)
+#endif // !defined(__USING_SJLJ_EXCEPTIONS__) && !defined(__wasm__)
#ifdef __APPLE__