[llvm-cov] Hide instantiation views for unexecuted functions
Copying in the full text of the function doesn't help at all when we already know that it's never executed. Just say that it's unexecuted -- the relevant source text has already been printed. llvm-svn: 281589
This commit is contained in:
@@ -215,7 +215,12 @@ void SourceCoverageViewText::renderInstantiationView(raw_ostream &OS,
|
||||
unsigned ViewDepth) {
|
||||
renderLinePrefix(OS, ViewDepth);
|
||||
OS << ' ';
|
||||
ISV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/true, ViewDepth);
|
||||
if (!ISV.View)
|
||||
getOptions().colored_ostream(OS, raw_ostream::RED)
|
||||
<< "Unexecuted instantiation: " << ISV.FunctionName << "\n";
|
||||
else
|
||||
ISV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/true,
|
||||
ViewDepth);
|
||||
}
|
||||
|
||||
void SourceCoverageViewText::renderTitle(raw_ostream &OS, StringRef Title) {
|
||||
|
||||
Reference in New Issue
Block a user