]> granicus.if.org Git - llvm/commit
[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)
commitd9d01c9cb21063b6e7f2ae92d99d9d25cadc0813
treebe2cdceabae27161b6e68661cc43e437fd85c230
parent8e1e4b94b8ca1b2738e7134d4330bb176260f61f
[opt] Initialize WriteBitcode pass.

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