From a5547a56649771a708de8d5b013dbbf62d0fcbae Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 3 Jul 2019 14:35:42 -0700 Subject: 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. --- src/passes/pass.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/passes/pass.cpp') 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); -- cgit v1.2.3