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 | 6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8 (patch) | |
tree | 66bf25ba975cb1ee3067f239b21dfc2e778e6913 /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | 2c17e82bc7b5e812a54cf7eb3a039a2f90bcde28 (diff) | |
download | llvm-6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8.zip llvm-6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8.tar.gz llvm-6b1f5f891fcb3b3d513e8935d3c7b4b5151217a8.tar.bz2 |
[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
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp index baf7c14..6fab1af 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; |