Clang support for -flto=thin.

Summary:
Add clang support for -flto=thin option, which is used to set the
EmitFunctionSummary code gen option on compiles.

Add -flto=full as an alias to the existing -flto.

Add tests to check for proper overriding of -flto variants on the
command line, and convert grep tests to FileCheck.

Reviewers: dexonsmith, joker.eph

Subscribers: davidxl, cfe-commits

Differential Revision: http://reviews.llvm.org/D11908

llvm-svn: 250398
This commit is contained in:
Teresa Johnson
2015-10-15 13:08:13 +00:00
parent cbd42b17c7
commit 31b2354929
12 changed files with 167 additions and 43 deletions

View File

@@ -605,8 +605,8 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action,
break;
case Backend_EmitBC:
getPerModulePasses()->add(
createBitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists));
getPerModulePasses()->add(createBitcodeWriterPass(
*OS, CodeGenOpts.EmitLLVMUseLists, CodeGenOpts.EmitFunctionSummary));
break;
case Backend_EmitLL: