forked from OSchip/llvm-project
[llvm-cov] Move some layout logic to the right spot (NFC)
llvm-svn: 281590
This commit is contained in:
parent
a8c396d99f
commit
408866ca61
|
@ -176,7 +176,8 @@ void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
|
||||||
if (ShowSourceName)
|
if (ShowSourceName)
|
||||||
renderSourceName(OS, WholeFile);
|
renderSourceName(OS, WholeFile);
|
||||||
|
|
||||||
renderTableHeader(OS, getFirstUncoveredLineNo(), ViewDepth);
|
renderTableHeader(OS, (ViewDepth > 0) ? 0 : getFirstUncoveredLineNo(),
|
||||||
|
ViewDepth);
|
||||||
|
|
||||||
// We need the expansions and instantiations sorted so we can go through them
|
// We need the expansions and instantiations sorted so we can go through them
|
||||||
// while we iterate lines.
|
// while we iterate lines.
|
||||||
|
|
|
@ -609,7 +609,7 @@ void SourceCoverageViewHTML::renderTableHeader(raw_ostream &OS,
|
||||||
unsigned FirstUncoveredLineNo,
|
unsigned FirstUncoveredLineNo,
|
||||||
unsigned ViewDepth) {
|
unsigned ViewDepth) {
|
||||||
std::string SourceLabel;
|
std::string SourceLabel;
|
||||||
if (FirstUncoveredLineNo == 0 || ViewDepth > 0) {
|
if (FirstUncoveredLineNo == 0) {
|
||||||
SourceLabel = tag("td", tag("pre", "Source"));
|
SourceLabel = tag("td", tag("pre", "Source"));
|
||||||
} else {
|
} else {
|
||||||
std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));
|
std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));
|
||||||
|
|
Loading…
Reference in New Issue