summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Error.h b/lld/ELF/Error.h
index e26f2daaf0f..581d61ae43e 100644
--- a/lld/ELF/Error.h
+++ b/lld/ELF/Error.h
@@ -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
OpenPOWER on IntegriCloud