[PATCH] D41033: Use ErrorOS for log messages as well as error

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 15:24:40 PST 2017


sbc100 updated this revision to Diff 126225.
sbc100 added a comment.

- feedback


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D41033

Files:
  Common/ErrorHandler.cpp


Index: Common/ErrorHandler.cpp
===================================================================
--- Common/ErrorHandler.cpp
+++ Common/ErrorHandler.cpp
@@ -73,8 +73,7 @@
 void ErrorHandler::log(const Twine &Msg) {
   if (Verbose) {
     std::lock_guard<std::mutex> Lock(Mu);
-    outs() << LogName << ": " << Msg << "\n";
-    outs().flush();
+    *ErrorOS << LogName << ": " << Msg << "\n";
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41033.126225.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171208/51f71f15/attachment.bin>


More information about the llvm-commits mailing list