summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-10-25 00:08:33 +0000
committerVedant Kumar <vsk@apple.com>2016-10-25 00:08:33 +0000
commit5c61c703877df673b89cb98a74edeb956b94506c (patch)
tree61abedefb74f6d6d50cbb007d7c674962b373058 /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent566a51d193c8c04382f391b42d2181a4b0b1cbf4 (diff)
downloadbcm5719-llvm-5c61c703877df673b89cb98a74edeb956b94506c.tar.gz
bcm5719-llvm-5c61c703877df673b89cb98a74edeb956b94506c.zip
[llvm-cov] Do not print out the filename of the object file
When we load coverage data from multiple objects, we don't have a way to attribute a source object to a function record. Printing out the object filename next to the source filename is already not very useful: soon, it'll actually become misleading. Stop printing out the filename now. llvm-svn: 285043
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageViewText.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
index 68891298a07..4ad120f642e 100644
--- a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
@@ -70,8 +70,8 @@ void SourceCoverageViewText::renderViewHeader(raw_ostream &) {}
void SourceCoverageViewText::renderViewFooter(raw_ostream &) {}
void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile) {
- std::string ViewInfo = WholeFile ? getVerboseSourceName() : getSourceName();
- getOptions().colored_ostream(OS, raw_ostream::CYAN) << ViewInfo << ":\n";
+ getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
+ << ":\n";
}
void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS,
OpenPOWER on IntegriCloud