summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2018-12-03 18:26:16 -0800
committerGitHub <noreply@github.com>2018-12-03 18:26:16 -0800
commit6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8 (patch)
tree5b343da66f58c7fff1fbcd401dcec3e913ea49ff /src/tools/wasm-reduce.cpp
parent99cad87cea463fc3b978850a1d1416d9b338a14c (diff)
downloadbinaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.tar.gz
binaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.tar.bz2
binaryen-6b6e89d0c8feeead83d6d83fa94e17fc9f75e0f8.zip
Feature options (#1797)
Add feature flags and struct interface. Default feature set has all feature enabled.
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
-rw-r--r--src/tools/wasm-reduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index 5c1f98d88..8c5df7a1b 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -797,7 +797,7 @@ struct Reducer : public WalkerPass<PostWalker<Reducer, UnifiedExpressionVisitor<
FunctionReferenceRemover referenceRemover(names);
referenceRemover.walkModule(module.get());
- if (WasmValidator().validate(*module, Feature::All, WasmValidator::Globally | WasmValidator::Quiet) &&
+ if (WasmValidator().validate(*module, FeatureSet::All, WasmValidator::Globally | WasmValidator::Quiet) &&
writeAndTestReduction()) {
std::cerr << "| removed " << names.size() << " functions\n";
return true;