[lld] 686a291 - [ELF] Change Msg to respect stdoutOS
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 17 20:45:14 PST 2024
Author: Fangrui Song
Date: 2024-11-17T20:45:08-08:00
New Revision: 686a291cdc909e9ab7c8659aa1cab82d0182d0d2
URL: https://github.com/llvm/llvm-project/commit/686a291cdc909e9ab7c8659aa1cab82d0182d0d2
DIFF: https://github.com/llvm/llvm-project/commit/686a291cdc909e9ab7c8659aa1cab82d0182d0d2.diff
LOG: [ELF] Change Msg to respect stdoutOS
Added:
Modified:
lld/Common/ErrorHandler.cpp
Removed:
################################################################################
diff --git a/lld/Common/ErrorHandler.cpp b/lld/Common/ErrorHandler.cpp
index 831f4ee0837ec9..ad6867744c145f 100644
--- a/lld/Common/ErrorHandler.cpp
+++ b/lld/Common/ErrorHandler.cpp
@@ -343,7 +343,7 @@ SyncStream::~SyncStream() {
e.log(buf);
break;
case DiagLevel::Msg:
- e.message(buf, llvm::outs());
+ e.message(buf, e.outs());
break;
case DiagLevel::Warn:
e.warn(buf);
More information about the llvm-commits
mailing list