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

This was missing when the file was added in
058222b231.

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

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

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__)