[clang] [llvm] WebAssembly: Introduce ExceptionHandling::EmscriptenEH model (PR #221443)

Heejin Ahn via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 01:15:37 PDT 2026


================
@@ -2459,9 +2459,9 @@ def femscripten_exceptions : Flag<["-"], "femscripten-exceptions">,
   HelpText<"Use Emscripten JavaScript-based C++ exceptions">;
 def exception_model : Separate<["-"], "exception-model">,
   Visibility<[CC1Option]>, HelpText<"The exception model">,
-  Values<"dwarf,sjlj,seh,wasm,none">,
+  Values<"dwarf,sjlj,seh,wasm,emscripten,none">,
   NormalizedValuesScope<"CodeGenOptions::ExceptionHandlingKind">,
-  NormalizedValues<["DwarfCFI", "SjLj", "WinEH", "Wasm", "None"]>,
+  NormalizedValues<["DwarfCFI", "SjLj", "WinEH", "Wasm", "EmscriptenEH", "None"]>,
----------------
aheejin wrote:

```suggestion
  NormalizedValues<["DwarfCFI", "SjLj", "WinEH", "Wasm", "Emscripten", "None"]>,
```

https://github.com/llvm/llvm-project/pull/221443


More information about the cfe-commits mailing list