From: Michael Kruse Date: Tue, 24 Oct 2017 17:17:27 +0000 (+0000) Subject: [opt] Initialize WriteBitcode pass. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9d01c9cb21063b6e7f2ae92d99d9d25cadc0813;p=llvm [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 --- diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 73f89c0e155..e2fdfe82b8c 100644 --- a/tools/opt/opt.cpp +++ b/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);