diff options
author | Ben Smith <binji@chromium.org> | 2018-09-02 18:22:35 -0700 |
---|---|---|
committer | Ben Smith <binjimin@gmail.com> | 2018-09-04 15:13:23 -0700 |
commit | b4125e90c70a6b1bef4480e33f3c838ab4c7cfcb (patch) | |
tree | 20c6e46776e5038ac3c97365a9a0435cb81ad340 /src/wast-parser.cc | |
parent | 4a54eb34d3e362c8a49316aff6e989f7c9743ed9 (diff) | |
download | wabt-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/wast-parser.cc')
-rw-r--r-- | src/wast-parser.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc index 1bb5229b..20d5d44a 100644 --- a/src/wast-parser.cc +++ b/src/wast-parser.cc @@ -23,7 +23,6 @@ #include "src/expr-visitor.h" #include "src/make-unique.h" #include "src/utf8.h" -#include "src/wast-parser-lexer-shared.h" #define WABT_TRACING 0 #include "src/tracing.h" @@ -384,7 +383,7 @@ void WastParser::Error(Location loc, const char* format, ...) { errors_++; va_list args; va_start(args, format); - WastFormatError(error_handler_, &loc, lexer_, format, args); + error_handler_->OnError(ErrorLevel::Error, loc, format, args); va_end(args); } |