From f08f75cf2fe1b6b8275f7f7fd4356919616ba95c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 19 Oct 2016 15:07:20 -0700 Subject: Add -O0,-O1,etc. options (#790) And use them in wasm-opt and asm2wasm consistently and uniformly. --- src/pass.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/pass.h') diff --git a/src/pass.h b/src/pass.h index 334f46ac8..dc9159aa0 100644 --- a/src/pass.h +++ b/src/pass.h @@ -61,12 +61,6 @@ struct PassOptions { int optimizeLevel = 0; // 0, 1, 2 correspond to -O0, -O1, -O2, etc. int shrinkLevel = 0; // 0, 1, 2 correspond to -O0, -Os, -Oz bool ignoreImplicitTraps = false; // optimize assuming things like div by 0, bad load/store, will not trap - - void setDefaultOptimizationOptions() { - optimizeLevel = 2; - shrinkLevel = 1; - ignoreImplicitTraps = true; - } }; // -- cgit v1.2.3