aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-02-24 19:04:36 -0800
committerPetr Hosek <phosek@google.com>2021-02-25 21:40:12 -0800
commit8459b8ef39f4d745f2aab8c43821b3389b0e5a74 (patch)
tree4bc8a68b520255d53290fc46801061aae43fc737 /clang/lib/Frontend/CompilerInvocation.cpp
parent9e56a093eeca15704180cce3a808aec195b331d1 (diff)
downloadllvm-8459b8ef39f4d745f2aab8c43821b3389b0e5a74.zip
llvm-8459b8ef39f4d745f2aab8c43821b3389b0e5a74.tar.gz
llvm-8459b8ef39f4d745f2aab8c43821b3389b0e5a74.tar.bz2
[Driver] Rename -fprofile-{prefix-map,compilation-dir} to -fcoverage-{prefix-map,compilation-dir}
These flags affect coverage mapping (-fcoverage-mapping), not -fprofile-[instr-]generate so it makes more sense to use the -fcoverage-* prefix. Differential Revision: https://reviews.llvm.org/D97434
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index eb44754..4d4b942 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1361,8 +1361,8 @@ void CompilerInvocation::GenerateCodeGenArgs(
GenerateArg(Args, OPT_fdebug_prefix_map_EQ,
Prefix.first + "=" + Prefix.second, SA);
- for (const auto &Prefix : Opts.ProfilePrefixMap)
- GenerateArg(Args, OPT_fprofile_prefix_map_EQ,
+ for (const auto &Prefix : Opts.CoveragePrefixMap)
+ GenerateArg(Args, OPT_fcoverage_prefix_map_EQ,
Prefix.first + "=" + Prefix.second, SA);
if (Opts.NewStructPathTBAA)
@@ -1636,9 +1636,9 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
{std::string(Split.first), std::string(Split.second)});
}
- for (const auto &Arg : Args.getAllArgValues(OPT_fprofile_prefix_map_EQ)) {
+ for (const auto &Arg : Args.getAllArgValues(OPT_fcoverage_prefix_map_EQ)) {
auto Split = StringRef(Arg).split('=');
- Opts.ProfilePrefixMap.insert(
+ Opts.CoveragePrefixMap.insert(
{std::string(Split.first), std::string(Split.second)});
}