Acquire the lock only when necessary. More precisely, do not acquire
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Fri, 3 Oct 2008 07:27:08 +0000 (07:27 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Fri, 3 Oct 2008 07:27:08 +0000 (07:27 +0000)
commitdcb31e179000193c65b3f09b7138ef273dc3ce63
tree072f7b08bf3b02fe02c844310e20da8931e3b882
parenta90793b431458c1bac4c7267946738968c4cdf58
Acquire the lock only when necessary. More precisely, do not acquire
the lock when calling a method which may materialize the llvm::Function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JITEmitter.cpp