From: Heejin Ahn Date: Thu, 8 Mar 2018 04:06:57 +0000 (+0000) Subject: [WebAssembly] Add except_ref as a first-class type X-Git-Tag: llvmorg-7.0.0-rc1~11137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2dce27d852ac59082bbee4131300b0dce972574b;p=platform%2Fupstream%2Fllvm.git [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 llvm-svn: 326986 --- diff --git a/lld/wasm/WriterUtils.cpp b/lld/wasm/WriterUtils.cpp index 5f7b4a2..ac3a19f 100644 --- a/lld/wasm/WriterUtils.cpp +++ b/lld/wasm/WriterUtils.cpp @@ -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"); }