diff options
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-cov/CoverageFilters.cpp | 2 | ||||
| -rw-r--r-- | llvm/tools/sancov/sancov.cc | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/llvm/tools/llvm-cov/CoverageFilters.cpp b/llvm/tools/llvm-cov/CoverageFilters.cpp index 0ed9b2c899a..ce78bb2713c 100644 --- a/llvm/tools/llvm-cov/CoverageFilters.cpp +++ b/llvm/tools/llvm-cov/CoverageFilters.cpp @@ -32,7 +32,7 @@ bool NameRegexCoverageFilter::matches( bool NameWhitelistCoverageFilter::matches( const coverage::CoverageMapping &, const coverage::FunctionRecord &Function) { - return Whitelist.inSection("whitelist_fun", Function.Name); + return Whitelist.inSection("llvmcov", "whitelist_fun", Function.Name); } bool RegionCoverageFilter::matches(const coverage::CoverageMapping &CM, diff --git a/llvm/tools/sancov/sancov.cc b/llvm/tools/sancov/sancov.cc index 7f103ebb904..4a4c00f27ad 100644 --- a/llvm/tools/sancov/sancov.cc +++ b/llvm/tools/sancov/sancov.cc @@ -584,13 +584,16 @@ public: UserBlacklist(createUserBlacklist()) {} bool isBlacklisted(const DILineInfo &I) { - if (DefaultBlacklist && DefaultBlacklist->inSection("fun", I.FunctionName)) + if (DefaultBlacklist && + DefaultBlacklist->inSection("sancov", "fun", I.FunctionName)) return true; - if (DefaultBlacklist && DefaultBlacklist->inSection("src", I.FileName)) + if (DefaultBlacklist && + DefaultBlacklist->inSection("sancov", "src", I.FileName)) return true; - if (UserBlacklist && UserBlacklist->inSection("fun", I.FunctionName)) + if (UserBlacklist && + UserBlacklist->inSection("sancov", "fun", I.FunctionName)) return true; - if (UserBlacklist && UserBlacklist->inSection("src", I.FileName)) + if (UserBlacklist && UserBlacklist->inSection("sancov", "src", I.FileName)) return true; return false; } |

