| //===----------------------------------------------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| #ifndef __WASM_UNWIND_H__ | |
| #define __WASM_UNWIND_H__ | |
| struct _Unwind_LandingPadContext { | |
| // Input information to personality function | |
| uintptr_t lpad_index; // landing pad index | |
| uintptr_t lsda; // LSDA address | |
| // Output information computed by personality function | |
| uintptr_t selector; // selector value | |
| }; | |
| // Communication channel between compiler-generated user code and personality | |
| // function | |
| #ifdef __cplusplus | |
| extern "C" | |
| #endif | |
| struct _Unwind_LandingPadContext *_Unwind_GetWasmLPadContext(void); | |
| #endif // __WASM_UNWIND_H__ |