From d2e36ca513350c23997631bb1260f8a08b2f76ef Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 8 Sep 2016 00:56:48 +0000 Subject: [llvm-cov] Use less space to describe source names In r279628, we made SourceCoverageView list the binary associated with a view and started adding labels (e.g "Source: foo" or "Function: bar") to everything. Condense this information a bit to unclutter reports. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280896 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/CodeCoverage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/llvm-cov/CodeCoverage.cpp') diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index 9755b6008d5..e5b9b69b0e3 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/tools/llvm-cov/CodeCoverage.cpp @@ -210,9 +210,9 @@ CodeCoverageTool::createFunctionView(const FunctionRecord &Function, return nullptr; auto Expansions = FunctionCoverage.getExpansions(); - auto View = SourceCoverageView::create( - getSymbolForHumans(Function.Name), SourceBuffer.get(), ViewOpts, - std::move(FunctionCoverage), /*FunctionView=*/true); + auto View = SourceCoverageView::create(getSymbolForHumans(Function.Name), + SourceBuffer.get(), ViewOpts, + std::move(FunctionCoverage)); attachExpansionSubViews(*View, Expansions, Coverage); return View; @@ -238,7 +238,7 @@ CodeCoverageTool::createSourceFileView(StringRef SourceFile, auto SubViewExpansions = SubViewCoverage.getExpansions(); auto SubView = SourceCoverageView::create( getSymbolForHumans(Function->Name), SourceBuffer.get(), ViewOpts, - std::move(SubViewCoverage), /*FunctionView=*/true); + std::move(SubViewCoverage)); attachExpansionSubViews(*SubView, SubViewExpansions, Coverage); if (SubView) { -- cgit v1.2.3