git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281590
91177308-0d34-0410-b5e6-
96231b3b80d8
if (ShowSourceName)
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
// while we iterate lines.
unsigned FirstUncoveredLineNo,
unsigned ViewDepth) {
std::string SourceLabel;
- if (FirstUncoveredLineNo == 0 || ViewDepth > 0) {
+ if (FirstUncoveredLineNo == 0) {
SourceLabel = tag("td", tag("pre", "Source"));
} else {
std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));