Rename validate to validate_with_features.

This commit is contained in:
Nick Lewycky 2019-07-29 12:01:16 -07:00
parent 86316c474a
commit 7a1ddc0b5a

View File

@ -150,7 +150,7 @@ pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingPa
} }
} }
fn validate(bytes: &[u8], features: &Features) -> CompileResult<()> { fn validate_with_features(bytes: &[u8], features: &Features) -> CompileResult<()> {
let mut parser = let mut parser =
wasmparser::ValidatingParser::new(bytes, Some(validating_parser_config(features))); wasmparser::ValidatingParser::new(bytes, Some(validating_parser_config(features)));
loop { loop {
@ -180,7 +180,7 @@ impl<
_: Token, _: Token,
) -> CompileResult<ModuleInner> { ) -> CompileResult<ModuleInner> {
if requires_pre_validation(MCG::backend_id()) { if requires_pre_validation(MCG::backend_id()) {
validate(wasm, &compiler_config.features)?; validate_with_features(wasm, &compiler_config.features)?;
} }
let mut mcg = MCG::new(); let mut mcg = MCG::new();