diff options
author | Vedant Kumar <vsk@apple.com> | 2016-09-15 06:44:48 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-09-15 06:44:48 +0000 |
commit | 2fcbfcf47019655dcaf6896c553ac0d3ac77b60a (patch) | |
tree | 9c2e81c8d2d5cc1f009d298e9c0a4bd4b02bf7fc /tools/llvm-cov/SourceCoverageViewHTML.cpp | |
parent | 0bcb8fb9507eaaaea8339be9e0fae4fc086aa698 (diff) |
[llvm-cov] Don't create 'jump to ...' links in nested views
Doing so is pointless, since the whole view is usually visible in a
small amount of space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-cov/SourceCoverageViewHTML.cpp')
-rw-r--r-- | tools/llvm-cov/SourceCoverageViewHTML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-cov/SourceCoverageViewHTML.cpp b/tools/llvm-cov/SourceCoverageViewHTML.cpp index 2fef1b4175d..0f176551550 100644 --- a/tools/llvm-cov/SourceCoverageViewHTML.cpp +++ b/tools/llvm-cov/SourceCoverageViewHTML.cpp @@ -601,7 +601,7 @@ void SourceCoverageViewHTML::renderTableHeader(raw_ostream &OS, unsigned FirstUncoveredLineNo, unsigned ViewDepth) { std::string SourceLabel; - if (FirstUncoveredLineNo == 0) { + if (FirstUncoveredLineNo == 0 || ViewDepth > 0) { SourceLabel = tag("td", tag("pre", "Source")); } else { std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo)); |