forked from OSchip/llvm-project
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:
parent
d034e7ddc8
commit
5057766d87
|
@ -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:
|
||||
|
|
|
@ -80,7 +80,6 @@ if( NOT CLANG_BUILT_STANDALONE )
|
|||
llc
|
||||
llvm-bcanalyzer
|
||||
llvm-dis
|
||||
llvm-modextract
|
||||
llvm-nm
|
||||
llvm-objdump
|
||||
llvm-profdata
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue