diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-03-14 18:23:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 18:23:59 -0700 |
commit | fc085c0971029bd5fe2bf66074c467f304dfc1e4 (patch) | |
tree | 5859683dc65e7487e8be8db9979cb5611d7485c9 /src/passes/pass.cpp | |
parent | d9cdee0437ebee89377d361e5a9320b44f252152 (diff) | |
download | binaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.tar.gz binaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.tar.bz2 binaryen-fc085c0971029bd5fe2bf66074c467f304dfc1e4.zip |
Add strip-target-features pass (#1946)
And run it in wasm-emscripten-finalize. This will prevent the emscripten output from changing when the target features section lands in LLVM.
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 3712bf19e..5d8b8d2c8 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -138,6 +138,7 @@ void PassRegistry::registerPasses() { registerPass("strip", "deprecated; same as strip-debug", createStripDebugPass); registerPass("strip-debug", "strip debug info (including the names section)", createStripDebugPass); registerPass("strip-producers", "strip the wasm producers section", createStripProducersPass); + registerPass("strip-target-features", "strip the wasm target features section", createStripTargetFeaturesPass); registerPass("trap-mode-clamp", "replace trapping operations with clamping semantics", createTrapModeClamp); registerPass("trap-mode-js", "replace trapping operations with js semantics", createTrapModeJS); registerPass("untee", "removes local.tees, replacing them with sets and gets", createUnteePass); |