diff options
author | Martin Bohme <mboehme@google.com> | 2017-01-23 14:33:42 +0000 |
---|---|---|
committer | Martin Bohme <mboehme@google.com> | 2017-01-23 14:33:42 +0000 |
commit | 5057766d87ddf0ad24fc1771aea6eebb115923ce (patch) | |
tree | cbc22af67a34f0020d77675b1c8a03ebb574cfae /clang/lib/CodeGen/BackendUtil.cpp | |
parent | d034e7ddc8e2f94a3b1fd0ea6a8cea630954a82c (diff) | |
download | llvm-5057766d87ddf0ad24fc1771aea6eebb115923ce.zip llvm-5057766d87ddf0ad24fc1771aea6eebb115923ce.tar.gz llvm-5057766d87ddf0ad24fc1771aea6eebb115923ce.tar.bz2 |
Revert "IRGen: Start using the WriteThinLTOBitcode pass."
Summary:
This reverts commit r292662.
This change broke internal builds. Will provide a reproducer internally.
Subscribers: pcc, mehdi_amini, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D29025
llvm-svn: 292791
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 4fdffde..bac1e89 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -689,11 +689,9 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action, break; case Backend_EmitBC: - if (CodeGenOpts.EmitSummaryIndex) - PerModulePasses.add(createWriteThinLTOBitcodePass(*OS)); - else - PerModulePasses.add( - createBitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists)); + PerModulePasses.add(createBitcodeWriterPass( + *OS, CodeGenOpts.EmitLLVMUseLists, CodeGenOpts.EmitSummaryIndex, + CodeGenOpts.EmitSummaryIndex)); break; case Backend_EmitLL: |