From d19721bc110f0c4545eeaed825de99f963834a0a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 3 Oct 2016 16:40:18 -0700 Subject: Refactor Import::Kind and Export::Kind into an ExternalKind enum class (#725) --- src/tools/wasm-shell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/wasm-shell.cpp') diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp index 670f5783d..bd8d987bd 100644 --- a/src/tools/wasm-shell.cpp +++ b/src/tools/wasm-shell.cpp @@ -160,8 +160,8 @@ static void run_asserts(Name moduleName, size_t* i, bool* checked, Module* wasm, // validate "instantiating" the mdoule for (auto& import : wasm.imports) { if (import->module == SPECTEST && import->base == PRINT) { - if (import->kind != Import::Function) { - std::cerr << "spectest.print should be a function, but is " << import->kind << '\n'; + if (import->kind != ExternalKind::Function) { + std::cerr << "spectest.print should be a function, but is " << int32_t(import->kind) << '\n'; invalid = true; break; } -- cgit v1.2.3