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/validator.h | |
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/validator.h')
-rw-r--r-- | src/validator.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/validator.h b/src/validator.h index 14cf8988..9ead26c5 100644 --- a/src/validator.h +++ b/src/validator.h @@ -18,7 +18,6 @@ #define WABT_VALIDATOR_H_ #include "src/feature.h" -#include "src/wast-lexer.h" namespace wabt { @@ -35,14 +34,8 @@ struct ValidateOptions { // Perform all checks on the script. It is valid if and only if this function // succeeds. -Result ValidateScript(WastLexer*, - const Script*, - ErrorHandler*, - const ValidateOptions&); -Result ValidateModule(WastLexer*, - const Module*, - ErrorHandler*, - const ValidateOptions&); +Result ValidateScript(const Script*, ErrorHandler*, const ValidateOptions&); +Result ValidateModule(const Module*, ErrorHandler*, const ValidateOptions&); // Validate that all functions that have an explicit function signature and a // function type use match. @@ -51,8 +44,7 @@ Result ValidateModule(WastLexer*, // be malformed text, not a validation error. We can't handle that error in the // parser because the parser doesn't resolve names to indexes, which is // required to perform this check. -Result ValidateFuncSignatures(WastLexer*, - const Module*, +Result ValidateFuncSignatures(const Module*, ErrorHandler*, const ValidateOptions&); |