diff options
author | Rui Ueyama <ruiu@google.com> | 2015-09-16 21:30:40 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-09-16 21:30:40 +0000 |
commit | 4bce7bcc88f3ed45cf52ca9db003f30c0ad096c3 (patch) | |
tree | ea296aa389aae22d7ba116f9f28d277093a39248 | |
parent | 65d4d5c3c6d742855f572d1306af93fabe015b0a (diff) | |
download | bcm5719-llvm-4bce7bcc88f3ed45cf52ca9db003f30c0ad096c3.tar.gz bcm5719-llvm-4bce7bcc88f3ed45cf52ca9db003f30c0ad096c3.zip |
COFF: Output messages for /verbose to stdout instead of stderr.
This patch also makes the message less verbose.
llvm-svn: 247853
-rw-r--r-- | lld/COFF/Chunks.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp index cbdfd55b38e..6a9c2149bce 100644 --- a/lld/COFF/Chunks.cpp +++ b/lld/COFF/Chunks.cpp @@ -207,13 +207,10 @@ bool SectionChunk::isCOMDAT() const { } void SectionChunk::printDiscardedMessage() const { - if (this == Ptr) { - // Removed by dead-stripping. - llvm::dbgs() << "Discarded " << Sym->getName() << "\n"; - } else { - // Removed by ICF. - llvm::dbgs() << "Replaced " << Sym->getName() << "\n"; - } + // Removed by dead-stripping. If it's removed by ICF, ICF already + // printed out the name, so don't repeat that here. + if (Sym && this == Ptr) + llvm::outs() << "Discarded " << Sym->getName() << "\n"; } StringRef SectionChunk::getDebugName() { |