diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-03-16 23:52:21 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-03-16 23:52:21 +0000 |
commit | 4e46237c6d37291b59d726903cfcb1b3ea8238e8 (patch) | |
tree | 100c5e3b181a75d30071b5ae6a1306d0ff79bde3 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3faa76bfab41067743d92dbf5648f02180d1fd1b (diff) | |
download | bcm5719-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/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 962e8e10df7..772c4e5a5d5 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -494,6 +494,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.CoverageExtraChecksum = Args.hasArg(OPT_coverage_cfg_checksum); Opts.CoverageNoFunctionNamesInData = Args.hasArg(OPT_coverage_no_function_names_in_data); + Opts.CoverageExitBlockBeforeBody = + Args.hasArg(OPT_coverage_exit_block_before_body); if (Args.hasArg(OPT_coverage_version_EQ)) { StringRef CoverageVersion = Args.getLastArgValue(OPT_coverage_version_EQ); if (CoverageVersion.size() != 4) { |