COFF: Output messages for /verbose to stdout instead of stderr.

This patch also makes the message less verbose.

llvm-svn: 247853
This commit is contained in:
Rui Ueyama 2015-09-16 21:30:40 +00:00
parent 65d4d5c3c6
commit 4bce7bcc88
1 changed files with 4 additions and 7 deletions

View File

@ -207,13 +207,10 @@ bool SectionChunk::isCOMDAT() const {
} }
void SectionChunk::printDiscardedMessage() const { void SectionChunk::printDiscardedMessage() const {
if (this == Ptr) { // Removed by dead-stripping. If it's removed by ICF, ICF already
// Removed by dead-stripping. // printed out the name, so don't repeat that here.
llvm::dbgs() << "Discarded " << Sym->getName() << "\n"; if (Sym && this == Ptr)
} else { llvm::outs() << "Discarded " << Sym->getName() << "\n";
// Removed by ICF.
llvm::dbgs() << "Replaced " << Sym->getName() << "\n";
}
} }
StringRef SectionChunk::getDebugName() { StringRef SectionChunk::getDebugName() {