diff options
author | Sean Eveson <eveson.sean@gmail.com> | 2017-09-27 16:20:07 +0000 |
---|---|---|
committer | Sean Eveson <eveson.sean@gmail.com> | 2017-09-27 16:20:07 +0000 |
commit | 1439fa6236abae2a9b523e54b19d0175175beb2a (patch) | |
tree | 042f5052c29c8e9f2fb24be7d86be26dac498cce /llvm/tools/llvm-cov/CoverageReport.cpp | |
parent | 21b013ebc159a0a85fa96de804dc4334c88d314f (diff) | |
download | bcm5719-llvm-1439fa6236abae2a9b523e54b19d0175175beb2a.tar.gz bcm5719-llvm-1439fa6236abae2a9b523e54b19d0175175beb2a.zip |
Revert "[llvm-cov] Create directory structure when filtering using -name*= options"
Test failures.
llvm-svn: 314314
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/CoverageReport.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp index 5c8ffe1216d..4c02bbcf2a3 100644 --- a/llvm/tools/llvm-cov/CoverageReport.cpp +++ b/llvm/tools/llvm-cov/CoverageReport.cpp @@ -322,8 +322,7 @@ void CoverageReport::renderFunctionReports(ArrayRef<std::string> Files, std::vector<FileCoverageSummary> CoverageReport::prepareFileReports( const coverage::CoverageMapping &Coverage, FileCoverageSummary &Totals, - ArrayRef<std::string> Files, const CoverageViewOptions &Options, - const CoverageFilter &Filters) { + ArrayRef<std::string> Files, const CoverageViewOptions &Options) { std::vector<FileCoverageSummary> FileReports; unsigned LCP = getRedundantPrefixLen(Files); @@ -333,15 +332,11 @@ std::vector<FileCoverageSummary> CoverageReport::prepareFileReports( for (const auto &Group : Coverage.getInstantiationGroups(Filename)) { std::vector<FunctionCoverageSummary> InstantiationSummaries; for (const coverage::FunctionRecord *F : Group.getInstantiations()) { - if (!Filters.matches(Coverage, *F)) - continue; auto InstantiationSummary = FunctionCoverageSummary::get(Coverage, *F); Summary.addInstantiation(InstantiationSummary); Totals.addInstantiation(InstantiationSummary); InstantiationSummaries.push_back(InstantiationSummary); } - if (InstantiationSummaries.empty()) - continue; auto GroupSummary = FunctionCoverageSummary::get(Group, InstantiationSummaries); @@ -364,15 +359,13 @@ void CoverageReport::renderFileReports(raw_ostream &OS) const { std::vector<std::string> UniqueSourceFiles; for (StringRef SF : Coverage.getUniqueSourceFiles()) UniqueSourceFiles.emplace_back(SF.str()); - renderFileReports(OS, UniqueSourceFiles, CoverageFiltersMatchAll()); + renderFileReports(OS, UniqueSourceFiles); } void CoverageReport::renderFileReports(raw_ostream &OS, - ArrayRef<std::string> Files, - const CoverageFilter &Filters) const { + ArrayRef<std::string> Files) const { FileCoverageSummary Totals("TOTAL"); - auto FileReports = - prepareFileReports(Coverage, Totals, Files, Options, Filters); + auto FileReports = prepareFileReports(Coverage, Totals, Files, Options); std::vector<StringRef> Filenames; for (const FileCoverageSummary &FCS : FileReports) |