Merging r232439:
------------------------------------------------------------------------ r232439 | mail | 2015-03-16 19:52:21 -0400 (Mon, 16 Mar 2015) | 7 lines GCOV: Expose the -coverage-exit-block-before-body flag in clang -cc1 This exposes the optional exit block placement logic from r232438 as a clang -cc1 option. There is a test on the llvm side, but there isn't really a way to inspect the gcov options from clang to test it here as well. ------------------------------------------------------------------------ llvm-svn: 236305
This commit is contained in:
@@ -375,6 +375,7 @@ void EmitAssemblyHelper::CreatePasses() {
|
||||
Options.NoRedZone = CodeGenOpts.DisableRedZone;
|
||||
Options.FunctionNamesInData =
|
||||
!CodeGenOpts.CoverageNoFunctionNamesInData;
|
||||
Options.ExitBlockBeforeBody = CodeGenOpts.CoverageExitBlockBeforeBody;
|
||||
MPM->add(createGCOVProfilerPass(Options));
|
||||
if (CodeGenOpts.getDebugInfo() == CodeGenOptions::NoDebugInfo)
|
||||
MPM->add(createStripSymbolsPass(true));
|
||||
|
||||
Reference in New Issue
Block a user