[lld] r295876 - Add a comment about thread safety.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 13:05:06 PST 2017


Author: ruiu
Date: Wed Feb 22 15:05:06 2017
New Revision: 295876

URL: http://llvm.org/viewvc/llvm-project?rev=295876&view=rev
Log:
Add a comment about thread safety.

Modified:
    lld/trunk/ELF/Error.h

Modified: lld/trunk/ELF/Error.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.h?rev=295876&r1=295875&r2=295876&view=diff
==============================================================================
--- lld/trunk/ELF/Error.h (original)
+++ lld/trunk/ELF/Error.h Wed Feb 22 15:05:06 2017
@@ -19,6 +19,10 @@
 //
 // Warn doesn't do anything but printing out a given message.
 //
+// It is not recommended to use llvm::outs() or llvm::errs() directly
+// in LLD because they are not thread-safe. The functions declared in
+// this file are thread-safe, so you want to use them instead.
+//
 //===----------------------------------------------------------------------===//
 
 #ifndef LLD_ELF_ERROR_H




More information about the llvm-commits mailing list