X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=tools%2Fllvm-cov%2FCoverageReport.h;h=7ec3df90b8f92d32dc10cceef06bfbbec75896fd;hb=ebe69fe11e48d322045d5949c83283927a0d790b;hp=e8d34f2a9cfc03408787f5704a9b048ffea40939;hpb=b7d2e72b02a4cb8034f32f8247a2558d2434e121;p=android-x86%2Fexternal-llvm.git diff --git a/tools/llvm-cov/CoverageReport.h b/tools/llvm-cov/CoverageReport.h index e8d34f2a9cf..7ec3df90b8f 100644 --- a/tools/llvm-cov/CoverageReport.h +++ b/tools/llvm-cov/CoverageReport.h @@ -14,24 +14,25 @@ #ifndef LLVM_COV_COVERAGEREPORT_H #define LLVM_COV_COVERAGEREPORT_H +#include "CoverageSummaryInfo.h" #include "CoverageViewOptions.h" -#include "CoverageSummary.h" namespace llvm { /// \brief Displays the code coverage report. class CoverageReport { const CoverageViewOptions &Options; - CoverageSummary &Summary; + std::unique_ptr Coverage; void render(const FileCoverageSummary &File, raw_ostream &OS); void render(const FunctionCoverageSummary &Function, raw_ostream &OS); public: - CoverageReport(const CoverageViewOptions &Options, CoverageSummary &Summary) - : Options(Options), Summary(Summary) {} + CoverageReport(const CoverageViewOptions &Options, + std::unique_ptr Coverage) + : Options(Options), Coverage(std::move(Coverage)) {} - void renderFunctionReports(raw_ostream &OS); + void renderFunctionReports(ArrayRef Files, raw_ostream &OS); void renderFileReports(raw_ostream &OS); };