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/tools/optimization-options.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/tools/optimization-options.h') diff --git a/src/tools/optimization-options.h b/src/tools/optimization-options.h index dfc61b0e3..cf7c612ea 100644 --- a/src/tools/optimization-options.h +++ b/src/tools/optimization-options.h @@ -141,7 +141,6 @@ struct OptimizationOptions : public ToolOptions { void runPasses(Module& wasm) { PassRunner passRunner(&wasm, passOptions); if (debug) passRunner.setDebug(true); - passRunner.setFeatures(passOptions.features); for (auto& pass : passes) { if (pass == DEFAULT_OPT_PASSES) { passRunner.addDefaultOptimizationPasses(); -- cgit v1.2.3