diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-03-20 01:38:16 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-03-20 01:38:16 +0000 |
commit | c02bbb61e1225f961d99ae6daf9789afdee8bbcf (patch) | |
tree | 7e2ef4d480782f2b7f8e7967d3a71c9d4da48bcb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 86e04ceaadf5e42877a0d76e766af45bf68224ff (diff) | |
download | llvm-c02bbb61e1225f961d99ae6daf9789afdee8bbcf.zip llvm-c02bbb61e1225f961d99ae6daf9789afdee8bbcf.tar.gz llvm-c02bbb61e1225f961d99ae6daf9789afdee8bbcf.tar.bz2 |
Make clang emit linkage names in debug info for subprograms when coverage info
is enabled. Also add a new -test-coverage cc1 flag which makes testing coverage
possible and add our first clang-side coverage test.
llvm-svn: 177470
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f6ba4e5..9f1228a 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -380,6 +380,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier); Opts.SanitizeRecover = !Args.hasArg(OPT_fno_sanitize_recover); + Opts.DisableGCov = Args.hasArg(OPT_test_coverage); Opts.EmitGcovArcs = Args.hasArg(OPT_femit_coverage_data); Opts.EmitGcovNotes = Args.hasArg(OPT_femit_coverage_notes); if (Opts.EmitGcovArcs || Opts.EmitGcovNotes) { |