summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-03-16 23:52:21 +0000
committerJustin Bogner <mail@justinbogner.com>2015-03-16 23:52:21 +0000
commit4e46237c6d37291b59d726903cfcb1b3ea8238e8 (patch)
tree100c5e3b181a75d30071b5ae6a1306d0ff79bde3 /clang/lib/CodeGen
parent3faa76bfab41067743d92dbf5648f02180d1fd1b (diff)
downloadbcm5719-llvm-4e46237c6d37291b59d726903cfcb1b3ea8238e8.tar.gz
bcm5719-llvm-4e46237c6d37291b59d726903cfcb1b3ea8238e8.zip
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: 232439
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index d3d5bcfe4de..fba75095e79 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -380,6 +380,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));
OpenPOWER on IntegriCloud