summaryrefslogtreecommitdiff
path: root/src/wasm-validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-validator.h')
-rw-r--r--src/wasm-validator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h
index b7f17c19c..ffd70ba89 100644
--- a/src/wasm-validator.h
+++ b/src/wasm-validator.h
@@ -56,7 +56,11 @@ struct WasmValidator {
};
typedef uint32_t Flags;
+ // Validate an entire module.
bool validate(Module& module, Flags flags = Globally);
+
+ // Validate a specific function.
+ bool validate(Function* func, Module& module, Flags flags = Globally);
};
} // namespace wasm