[lld] r326986 - [WebAssembly] Add except_ref as a first-class type

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 20:06:57 PST 2018


Author: aheejin
Date: Wed Mar  7 20:06:57 2018
New Revision: 326986

URL: http://llvm.org/viewvc/llvm-project?rev=326986&view=rev
Log:
[WebAssembly] Add except_ref as a first-class type

Summary:
Add except_ref as a first-class type, according to the [[https://github.com/WebAssembly/exception-handling/blob/master/proposals/Level-1.md | Level 1 exception handling proposal ]].
Companion to D43706.

Reviewers: sbc100

Subscribers: jfb, dschuff, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D43707

Modified:
    lld/trunk/wasm/WriterUtils.cpp

Modified: lld/trunk/wasm/WriterUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/WriterUtils.cpp?rev=326986&r1=326985&r2=326986&view=diff
==============================================================================
--- lld/trunk/wasm/WriterUtils.cpp (original)
+++ lld/trunk/wasm/WriterUtils.cpp Wed Mar  7 20:06:57 2018
@@ -174,6 +174,8 @@ std::string lld::toString(ValType Type)
     return "F32";
   case ValType::F64:
     return "F64";
+  case ValType::EXCEPT_REF:
+    return "except_ref";
   }
   llvm_unreachable("Invalid wasm::ValType");
 }




More information about the llvm-commits mailing list