]> granicus.if.org Git - llvm/commitdiff
[opt] Initialize WriteBitcode pass.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 24 Oct 2017 17:17:27 +0000 (17:17 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 24 Oct 2017 17:17:27 +0000 (17:17 +0000)
Probably due to a change of how some pass initializes its dependencies,
the -write-bitcode pass (Bitcode/Writer/BitcodeWriterPass.cpp) is not
initialized in opt anymore and therefore not usable with

opt -write-bitcode

Explicitly call initializeWriteBitcodePassPass() to make it available
in opt again.

Differential Revision: https://reviews.llvm.org/D39223

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316464 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/opt.cpp

index 73f89c0e155574dd316a156ac834155edfb43bdc..e2fdfe82b8c64b971c87ecbafa4ef27c2c82bc3e 100644 (file)
@@ -405,6 +405,7 @@ int main(int argc, char **argv) {
   initializeCountingFunctionInserterPass(Registry);
   initializeUnreachableBlockElimLegacyPassPass(Registry);
   initializeExpandReductionsPass(Registry);
+  initializeWriteBitcodePassPass(Registry);
 
 #ifdef LINK_POLLY_INTO_TOOLS
   polly::initializePollyPasses(Registry);