[llvm-cov] Move some layout logic to the right spot (NFC)

llvm-svn: 281590
This commit is contained in:
Vedant Kumar
2016-09-15 06:49:13 +00:00
parent a8c396d99f
commit 408866ca61
2 changed files with 3 additions and 2 deletions

View File

@@ -176,7 +176,8 @@ void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
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.