[lld] [llvm] [WebAssembly] Require tags for Wasm EH and Wasm SJLJ to be defined externally (PR #159143)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 19:03:06 PDT 2025


================
@@ -249,13 +249,6 @@ MCSymbol *WebAssemblyAsmPrinter::getOrCreateWasmSymbol(StringRef Name) {
   SmallVector<wasm::ValType, 4> Params;
   if (Name == "__cpp_exception" || Name == "__c_longjmp") {
----------------
aheejin wrote:

Not sure if meant this, but our asm parser sets the tag type when parsing `.tagtype`:
https://github.com/llvm/llvm-project/blob/fdb1f486387d46bd046d7827fcd19fa44118bffe/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp#L1096

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


More information about the llvm-commits mailing list