diff options
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageExporterLcov.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/CoverageExporterLcov.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp index bc9dce85295..d9b0c3b0d7a 100644 --- a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp +++ b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp @@ -106,11 +106,10 @@ void renderFiles(raw_ostream &OS, const coverage::CoverageMapping &Coverage, } // end anonymous namespace -void CoverageExporterLcov::renderRoot( - const FilenameCoverageFilters &FilenameFilters) { +void CoverageExporterLcov::renderRoot(const CoverageFilters &IgnoreFilters) { std::vector<std::string> SourceFiles; for (StringRef SF : Coverage.getUniqueSourceFiles()) { - if (FilenameFilters.matchesFilename(SF)) + if (!IgnoreFilters.matchesFilename(SF)) SourceFiles.emplace_back(SF); } renderRoot(SourceFiles); |