[PATCH] D39223: [opt] Initialize WriteBitcode pass.
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 01:40:37 PDT 2017
Meinersbur created this revision.
Probably due to a change of how some pass initializes its dependency, the -write-bitcode pass (BitcodeWriterPass.cpp) is not initialized in opt and therefore not available in the pass list anymore.
Explicitly call initializeWriteBitcodePassPass() to make it available again in opt.
Alternatively, is there an initializeBitcode{Reader/Writer}() function that initializes all passes from the Bitcode lib?
https://reviews.llvm.org/D39223
Files:
tools/opt/opt.cpp
Index: tools/opt/opt.cpp
===================================================================
--- tools/opt/opt.cpp
+++ tools/opt/opt.cpp
@@ -405,6 +405,7 @@
initializeCountingFunctionInserterPass(Registry);
initializeUnreachableBlockElimLegacyPassPass(Registry);
initializeExpandReductionsPass(Registry);
+ initializeWriteBitcodePassPass(Registry);
#ifdef LINK_POLLY_INTO_TOOLS
polly::initializePollyPasses(Registry);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39223.120008.patch
Type: text/x-patch
Size: 433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/da28f236/attachment.bin>
More information about the llvm-commits
mailing list