summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-10-24 17:17:27 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-10-24 17:17:27 +0000
commit3fe15ee8fe3d5696aa4e5a605f3f270d13a6040e (patch)
treeedbbbc117aaa5da90dcf16fc7b987a375b39ffb1 /llvm/tools/opt/opt.cpp
parent64f745cf20135e6badee8f76e510bac90ff4fcfc (diff)
downloadbcm5719-llvm-3fe15ee8fe3d5696aa4e5a605f3f270d13a6040e.tar.gz
bcm5719-llvm-3fe15ee8fe3d5696aa4e5a605f3f270d13a6040e.zip
[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 llvm-svn: 316464
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
-rw-r--r--llvm/tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 73f89c0e155..e2fdfe82b8c 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -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);
OpenPOWER on IntegriCloud