[llvm-cov] Move the 'jump to first unexecuted line' link
Having it in the same row as the source name is jarring. Move it next to
the "Source" column label.
llvm-svn: 281146
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp
index 23c86e3..362f48b 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp
@@ -173,14 +173,11 @@
renderViewHeader(OS);
- unsigned FirstUncoveredLineNo = 0;
- if (WholeFile)
- FirstUncoveredLineNo = getFirstUncoveredLineNo();
-
if (ShowSourceName)
- renderSourceName(OS, WholeFile, FirstUncoveredLineNo);
+ renderSourceName(OS, WholeFile);
- renderTableHeader(OS, ViewDepth);
+ renderTableHeader(OS, getFirstUncoveredLineNo(), ViewDepth);
+
// We need the expansions and instantiations sorted so we can go through them
// while we iterate lines.
std::sort(ExpansionSubViews.begin(), ExpansionSubViews.end());