Make the error-handling functions thread-safe.
authorZachary Turner <zturner@google.com>
Fri, 13 Jun 2014 21:20:44 +0000 (21:20 +0000)
committerZachary Turner <zturner@google.com>
Fri, 13 Jun 2014 21:20:44 +0000 (21:20 +0000)
commit89e90b25e3c9a0a20a6789b81d2a831ba9e8959e
treed6317ef970ddf9c0728424ba49ba2f637c211580
parent6140939365cb1d23a7f8ab99b6b30650d41dac42
Make the error-handling functions thread-safe.

Prior to this change, error handling functions must be installed
and removed only inside of an llvm_[start/stop]_multithreading
pair.  This change allows error handling functions to be installed
any time, and from any thread.

Reviewed by: chandlerc

Differential Revision: http://reviews.llvm.org/D4140

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210937 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ErrorHandling.h
lib/Support/ErrorHandling.cpp