summaryrefslogtreecommitdiff
path: root/src/tools/wasm-validate.cc
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2018-09-02 18:22:35 -0700
committerBen Smith <binjimin@gmail.com>2018-09-04 15:13:23 -0700
commitb4125e90c70a6b1bef4480e33f3c838ab4c7cfcb (patch)
tree20c6e46776e5038ac3c97365a9a0435cb81ad340 /src/tools/wasm-validate.cc
parent4a54eb34d3e362c8a49316aff6e989f7c9743ed9 (diff)
downloadwabt-b4125e90c70a6b1bef4480e33f3c838ab4c7cfcb.tar.gz
wabt-b4125e90c70a6b1bef4480e33f3c838ab4c7cfcb.tar.bz2
wabt-b4125e90c70a6b1bef4480e33f3c838ab4c7cfcb.zip
Move WastLexer out of NameResolver, Validator, etc.
Also remove wast-parser-lexer-shared.{cc,h}.
Diffstat (limited to 'src/tools/wasm-validate.cc')
-rw-r--r--src/tools/wasm-validate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm-validate.cc b/src/tools/wasm-validate.cc
index 4cbd5605..54c13daa 100644
--- a/src/tools/wasm-validate.cc
+++ b/src/tools/wasm-validate.cc
@@ -85,9 +85,8 @@ int ProgramMain(int argc, char** argv) {
result = ReadBinaryIr(s_infile.c_str(), file_data.data(), file_data.size(),
options, &error_handler, &module);
if (Succeeded(result)) {
- WastLexer* lexer = nullptr;
ValidateOptions options(s_features);
- result = ValidateModule(lexer, &module, &error_handler, options);
+ result = ValidateModule(&module, &error_handler, options);
}
}
return result != Result::Ok;