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
This commit is contained in:
Martin Bohme 2017-01-23 14:33:42 +00:00
parent d034e7ddc8
commit 5057766d87
3 changed files with 3 additions and 17 deletions

View File

@ -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:

View File

@ -80,7 +80,6 @@ if( NOT CLANG_BUILT_STANDALONE )
llc
llvm-bcanalyzer
llvm-dis
llvm-modextract
llvm-nm
llvm-objdump
llvm-profdata

View File

@ -1,11 +0,0 @@
// RUN: %clang_cc1 -flto=thin -flto-unit -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s
// RUN: llvm-modextract -o - -n 1 %t | llvm-dis | FileCheck %s
// CHECK: @_ZTV1A = linkonce_odr
class A {
virtual void f() {}
};
A *f() {
return new A;
}