diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-02-02 18:47:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 18:47:10 -0800 |
commit | 6b05f000e8b9249afd0838774b6bdaf64fcaf90a (patch) | |
tree | ac9c331c10c72da23429dcd64a47b47bc40aa34b /src/tools/js-wrapper.h | |
parent | c81857a3a7708738b20bb28a320fc971e74626a7 (diff) | |
download | binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.tar.gz binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.tar.bz2 binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.zip |
Rename WasmType => Type (#1398)
* rename WasmType to Type. it's in the wasm:: namespace anyhow, and without Wasm- it fits in better alongside Index, Address, Expression, Module, etc.
Diffstat (limited to 'src/tools/js-wrapper.h')
-rw-r--r-- | src/tools/js-wrapper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h index 90453eb35..cb5c0bd5b 100644 --- a/src/tools/js-wrapper.h +++ b/src/tools/js-wrapper.h @@ -49,7 +49,7 @@ static std::string generateJSWrapper(Module& wasm) { auto* func = wasm.getFunctionOrNull(exp->value); if (!func) continue; // something exported other than a function auto bad = false; // check for things we can't support - for (WasmType param : func->params) { + for (Type param : func->params) { if (param == i64) bad = true; } if (func->result == i64) bad = true; @@ -62,7 +62,7 @@ static std::string generateJSWrapper(Module& wasm) { } ret += std::string("instance.exports.") + exp->name.str + "("; bool first = true; - for (WasmType param : func->params) { + for (Type param : func->params) { WASM_UNUSED(param); // zeros in arguments TODO more? if (first) { |