diff options
author | Rui Ueyama <ruiu@google.com> | 2017-02-22 21:05:06 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-02-22 21:05:06 +0000 |
commit | e9bc0b5a3c7d617b29bcf93df20ba4c77c27fb94 (patch) | |
tree | 5a0483bdc4e2c4429db3c88be319a82411b224a2 | |
parent | 8afd6565e7afd63ba0042c0e3f2850c938ef1750 (diff) | |
download | bcm5719-llvm-e9bc0b5a3c7d617b29bcf93df20ba4c77c27fb94.tar.gz bcm5719-llvm-e9bc0b5a3c7d617b29bcf93df20ba4c77c27fb94.zip |
Add a comment about thread safety.
llvm-svn: 295876
-rw-r--r-- | lld/ELF/Error.h | 4 |
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 |