From e2587f30827cd3d35dd409c2958b25a6c5517092 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 22 Nov 2019 12:46:04 -0800 Subject: Multivalue type creation and inspection (#2459) Adds the ability to create multivalue types from vectors of concrete value types. All types are transparently interned, so their representation is still a single uint32_t. Types can be extracted into vectors of their component parts, and all the single value types expand into vectors containing themselves. Multivalue types are not yet used in the IR, but their creation and inspection functionality is exposed and tested in the C and JS APIs. Also makes common type predicates methods of Type and improves the ergonomics of type printing. --- src/wasm/literal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/literal.cpp') diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 8d8868eb4..41d8d2924 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -252,7 +252,7 @@ void Literal::printVec128(std::ostream& o, const std::array& v) { } std::ostream& operator<<(std::ostream& o, Literal literal) { - prepareMinorColor(o) << printType(literal.type) << ".const "; + prepareMinorColor(o) << literal.type << ".const "; switch (literal.type) { case Type::none: o << "?"; -- cgit v1.2.3