diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-03 16:40:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 16:40:18 -0700 |
commit | d19721bc110f0c4545eeaed825de99f963834a0a (patch) | |
tree | 100278897d5488b23206df5a957c368b60d2f224 /src/tools/wasm-shell.cpp | |
parent | eab1c956d2dbdcc83a861c94f95662bfc0af38cc (diff) | |
download | binaryen-d19721bc110f0c4545eeaed825de99f963834a0a.tar.gz binaryen-d19721bc110f0c4545eeaed825de99f963834a0a.tar.bz2 binaryen-d19721bc110f0c4545eeaed825de99f963834a0a.zip |
Refactor Import::Kind and Export::Kind into an ExternalKind enum class (#725)
Diffstat (limited to 'src/tools/wasm-shell.cpp')
-rw-r--r-- | src/tools/wasm-shell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |