aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/builtins/wasm/__cpp_exception.S
blob: 0496e1dbf615823218b9336584955d94d6d1df77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===-- __cpp_exception.S - Implement __cpp_exception ---------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file implements __cpp_exception which LLVM uses to implement exception
// handling when Wasm EH is enabled.
//
//===----------------------------------------------------------------------===//

#ifdef __wasm_exception_handling__

#ifdef __wasm64__
#define PTR i64
#else
#define PTR i32
#endif

.globl __cpp_exception
.tagtype __cpp_exception PTR
__cpp_exception:

#endif // !__wasm_exception_handling__