diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-07-03 14:35:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-03 14:35:42 -0700 |
commit | a5547a56649771a708de8d5b013dbbf62d0fcbae (patch) | |
tree | 776557d4af0f06ac2080d51a6e26e48ffb4fd06b /src/passes/pass.cpp | |
parent | 23d8497ce605b41652e97aea06150c9d59b93796 (diff) | |
download | binaryen-a5547a56649771a708de8d5b013dbbf62d0fcbae.tar.gz binaryen-a5547a56649771a708de8d5b013dbbf62d0fcbae.tar.bz2 binaryen-a5547a56649771a708de8d5b013dbbf62d0fcbae.zip |
Clean up loose ends in feature handling (#2203)
Fix and test mutable globals support, replace string literals with
constants, and add a pass to emit the target features section.
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index b46a03b5e..d1dd2fe69 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -109,6 +109,9 @@ void PassRegistry::registerPasses() { registerPass("duplicate-function-elimination", "removes duplicate functions", createDuplicateFunctionEliminationPass); + registerPass("emit-target-features", + "emit the target features section in the output", + createEmitTargetFeaturesPass); registerPass("extract-function", "leaves just one function (useful for debugging)", createExtractFunctionPass); |