From 6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Tue, 9 Aug 2016 19:53:35 +0000 Subject: [llvm-cov] Swapped the line and count columns. In the coverage report, the line and count columns have been swapped to make it more readable. A follow-up commit in compiler-rt is needed Differential Revision: https://reviews.llvm.org/D23281 llvm-svn: 278152 --- llvm/tools/llvm-cov/SourceCoverageView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/llvm-cov') diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp index baf7c148bb8..6fab1afd6b6 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp @@ -182,10 +182,10 @@ void SourceCoverageView::print(raw_ostream &OS, bool WholeFile, LineCount.addRegionStartCount(S->Count); renderLinePrefix(OS, ViewDepth); - if (getOptions().ShowLineStats) - renderLineCoverageColumn(OS, LineCount); if (getOptions().ShowLineNumbers) renderLineNumberColumn(OS, LI.line_number()); + if (getOptions().ShowLineStats) + renderLineCoverageColumn(OS, LineCount); // If there are expansion subviews, we want to highlight the first one. unsigned ExpansionColumn = 0; -- cgit v1.2.3