[PATCH] D43707: [WebAssembly] Add except_ref as a first-class type

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 17:53:24 PST 2018


aheejin created this revision.
aheejin added a reviewer: sbc100.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, dschuff, jfb.

Add except_ref as a first-class type, according to the Level 1 exception handling proposal <https://github.com/WebAssembly/exception-handling/blob/master/proposals/Level-1.md>.
Companion to https://reviews.llvm.org/D43706.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43707

Files:
  wasm/WriterUtils.cpp


Index: wasm/WriterUtils.cpp
===================================================================
--- wasm/WriterUtils.cpp
+++ wasm/WriterUtils.cpp
@@ -172,6 +172,8 @@
     return "F32";
   case ValType::F64:
     return "F64";
+  case ValType::EXCEPT_REF:
+    return "except_ref";
   }
   llvm_unreachable("Invalid wasm::ValType");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43707.135749.patch
Type: text/x-patch
Size: 335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180224/75dfb18e/attachment.bin>


More information about the llvm-commits mailing list