Replace Execution Engine's mutex with std::recursive_mutex.
authorZachary Turner <zturner@google.com>
Wed, 18 Jun 2014 20:17:35 +0000 (20:17 +0000)
committerZachary Turner <zturner@google.com>
Wed, 18 Jun 2014 20:17:35 +0000 (20:17 +0000)
commit1f502bd9d7d2c1f98ad93a09ffe435e11a95aedd
tree82933a5d1d0e64418c721231a411dac3d9267f12
parentb2791542c2c5df2912848b8bdf06fb1093d4ac12
Replace Execution Engine's mutex with std::recursive_mutex.

This change has a bit of a trickle down effect due to the fact that
there are a number of derived implementations of ExecutionEngine,
and that the mutex is not tightly encapsulated so is used by other
classes directly.

Reviewed by: rnk

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211214 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/IR/ValueMap.h
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
unittests/IR/ValueMapTest.cpp