[libunwind] Add Unwind-wasm.c to CMakeLists.txt (#67770)

This was missing when the file was added in
https://github.com/llvm/llvm-project/commit/058222b2316615194c089f2bc68d11341f39d26e.

Also reordered some headers to make LLVM CI and clang-format happy.
This commit is contained in:
Heejin Ahn authored and GitHub committed 2023-10-02 13:47:56 -07:00
1 parent 3f417a7096
commit 8ebd226375
2 files changed
+7 -4

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ set(LIBUNWIND_C_SOURCES
UnwindLevel1.c
UnwindLevel1-gcc-ext.c
Unwind-sjlj.c
Unwind-wasm.c
)
set_source_files_properties(${LIBUNWIND_C_SOURCES}
PROPERTIES
+6 -4
View File
@@ -10,13 +10,15 @@
//
//===----------------------------------------------------------------------===//
#include "config.h"
#include "unwind.h"
#include <stdbool.h>
#include <threads.h>
#include "config.h"
#ifdef __USING_WASM_EXCEPTIONS__
#include "unwind.h"
#include <threads.h>
_Unwind_Reason_Code __gxx_personality_wasm0(int version, _Unwind_Action actions,
uint64_t exceptionClass,
_Unwind_Exception *unwind_exception,
@@ -118,4 +120,4 @@ _Unwind_GetRegionStart(struct _Unwind_Context *context) {
return 0;
}
#endif
#endif // defined(__USING_WASM_EXCEPTIONS__)