From 9495b338121140d585648d64fb99e8ef7f92f867 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 12 Apr 2019 18:27:13 -0700 Subject: Move features from passOptions to Module (#2001) This allows us to emit a (potentially modified) target features section and conditionally emit other sections such as the DataCount section based on the presence of features. --- src/binaryen-c.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/binaryen-c.cpp') diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 2ae3da650..aa94d1d30 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -2486,9 +2486,9 @@ int BinaryenModuleValidate(BinaryenModuleRef module) { } Module* wasm = (Module*)module; - // TODO add feature selection support to C API - FeatureSet features = FeatureSet::All; - return WasmValidator().validate(*wasm, features) ? 1 : 0; + // TODO(tlively): Add C API for managing features + wasm->features = FeatureSet::All; + return WasmValidator().validate(*wasm) ? 1 : 0; } void BinaryenModuleOptimize(BinaryenModuleRef module) { -- cgit v1.2.3