[compiler-rt] [lld] [llvm] [WebAssembly] Require tags for Wasm EH and Wasm SJLJ to be defined externally (PR #159143)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 09:46:18 PDT 2025
================
@@ -0,0 +1,26 @@
+//===-- __cpp_exception.S - Implement __cpp_exception.S -------------------===//
+//
+// 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__
----------------
dschuff wrote:
Yeah, it just seemed to me that since it's C++-specific it could be in the C++ library. But I don't have a strong feeling about it; maybe @petrhosek has thoughts.
https://github.com/llvm/llvm-project/pull/159143
More information about the llvm-commits
mailing list