summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-03-08 04:06:57 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-03-08 04:06:57 +0000
commit2dce27d852ac59082bbee4131300b0dce972574b (patch)
tree5780aabf2fafe232fba63c8239ff64cb9fa14ebe
parent0de587296ebdc071086d35e888aa850c0c97340d (diff)
downloadbcm5719-llvm-2dce27d852ac59082bbee4131300b0dce972574b.tar.gz
bcm5719-llvm-2dce27d852ac59082bbee4131300b0dce972574b.zip
[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
-rw-r--r--lld/wasm/WriterUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/wasm/WriterUtils.cpp b/lld/wasm/WriterUtils.cpp
index 5f7b4a2c1b8..ac3a19fc04d 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");
}
OpenPOWER on IntegriCloud