diff options
| author | Ben Smith <binji@chromium.org> | 2016-11-12 13:38:36 -0800 |
|---|---|---|
| committer | Ben Smith <binji@chromium.org> | 2016-11-16 10:21:13 -0800 |
| commit | 0029de32e08f23cc59d36dbdbaa38a25f185a3c0 (patch) | |
| tree | 006ba7f23bf8b574f77ae16c98a7aaf4307b6d2a /src/ast-checker.h | |
| parent | c73c9100c2e480da4cda6339df01a8341ddbb46d (diff) | |
| download | wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.tar.gz wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.tar.bz2 wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.zip | |
Add wast_resolve_names_* as a separate pass
This used to be handled by wasm_check_ast, but is clunkier than having a
separate pass.
Diffstat (limited to 'src/ast-checker.h')
| -rw-r--r-- | src/ast-checker.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/ast-checker.h b/src/ast-checker.h index 6f0ec22e..c73386b2 100644 --- a/src/ast-checker.h +++ b/src/ast-checker.h @@ -25,24 +25,17 @@ struct WasmModule; struct WasmScript; WASM_EXTERN_C_BEGIN -/* Only check that names are valid; this is useful if you want to generate - * invalid binaries (so they can be validated by the consumer). */ -WasmResult wasm_check_names(struct WasmAllocator*, - WasmAstLexer*, - const struct WasmScript*, - WasmSourceErrorHandler*); - /* perform all checks on the AST; the module is valid if and only if this * function succeeds. */ -WasmResult wasm_check_ast(struct WasmAllocator*, - WasmAstLexer*, - const struct WasmScript*, - WasmSourceErrorHandler*); +WasmResult wasm_check_script(struct WasmAllocator*, + WasmAstLexer*, + const struct WasmScript*, + WasmSourceErrorHandler*); /* Run the assert_invalid and assert_malformed spec tests. A module is * "malformed" if it cannot be read from the binary format. A module is * "invalid" if either it is malformed, or if it does not pass the standard - * checks (as done by wasm_check_ast). This function succeeds if and only if + * checks (as done by wasm_check_script). This function succeeds if and only if * all assert_invalid and assert_malformed tests pass. */ WasmResult wasm_check_assert_invalid_and_malformed( struct WasmAllocator*, |
