diff options
author | Diego Novillo <dnovillo@google.com> | 2015-08-05 23:27:40 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2015-08-05 23:27:40 +0000 |
commit | c4b94da00eea0122b0ef2e2b5942a584d9c24786 (patch) | |
tree | eb584eef733cb3f69537931c149b7fb7985d9878 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | afff74e2286cb81be4d78ea9704b96779c302dc7 (diff) | |
download | llvm-c4b94da00eea0122b0ef2e2b5942a584d9c24786.zip llvm-c4b94da00eea0122b0ef2e2b5942a584d9c24786.tar.gz llvm-c4b94da00eea0122b0ef2e2b5942a584d9c24786.tar.bz2 |
Add -fno-coverage-mapping flag.
This new flag allows the user to disable a previous instance of
-fcoverage-mapping, if needed.
llvm-svn: 244170
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 31793ea..8934c80 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -456,7 +456,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Args.hasArg(OPT_fprofile_instr_generate_EQ); Opts.InstrProfileOutput = Args.getLastArgValue(OPT_fprofile_instr_generate_EQ); Opts.InstrProfileInput = Args.getLastArgValue(OPT_fprofile_instr_use_EQ); - Opts.CoverageMapping = Args.hasArg(OPT_fcoverage_mapping); + Opts.CoverageMapping = + Args.hasFlag(OPT_fcoverage_mapping, OPT_fno_coverage_mapping, false); Opts.DumpCoverageMapping = Args.hasArg(OPT_dump_coverage_mapping); Opts.AsmVerbose = Args.hasArg(OPT_masm_verbose); Opts.ObjCAutoRefCountExceptions = Args.hasArg(OPT_fobjc_arc_exceptions); |