diff options
author | Ying Yi <maggieyi666@gmail.com> | 2016-08-09 19:53:35 +0000 |
---|---|---|
committer | Ying Yi <maggieyi666@gmail.com> | 2016-08-09 19:53:35 +0000 |
commit | 17a2f3f28e35577fffd975afc19d45bdbe5a2fdd (patch) | |
tree | b87fb36a1961bb61d0893420db09f1cc5eb00b69 /tools/llvm-cov/SourceCoverageView.cpp | |
parent | bf1a5ce9bf952555e71777431ea53b6355253b41 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r-- | tools/llvm-cov/SourceCoverageView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-cov/SourceCoverageView.cpp b/tools/llvm-cov/SourceCoverageView.cpp index baf7c148bb8..6fab1afd6b6 100644 --- a/tools/llvm-cov/SourceCoverageView.cpp +++ b/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; |