diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-19 17:07:46 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-19 17:07:46 +0000 |
commit | 0202feebb49b283e6d0748acf526e3211070afa1 (patch) | |
tree | 477d2e09fc8965df7cafc3617180590d000ff7a4 /lib/VMCore/LLVMContextImpl.h | |
parent | 3ac391379082bc13e9d8a374ed8f8fbf66c6131f (diff) | |
download | external_llvm-0202feebb49b283e6d0748acf526e3211070afa1.zip external_llvm-0202feebb49b283e6d0748acf526e3211070afa1.tar.gz external_llvm-0202feebb49b283e6d0748acf526e3211070afa1.tar.bz2 |
Reapply my less-lock-contention-in-leak-detector patch, now with new files
actually added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index aaa48ca..20d410e 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -16,6 +16,7 @@ #define LLVM_LLVMCONTEXT_IMPL_H #include "ConstantsContext.h" +#include "LeaksContext.h" #include "TypesContext.h" #include "llvm/LLVMContext.h" #include "llvm/Constants.h" @@ -134,6 +135,10 @@ public: ConstantInt *TheTrueVal; ConstantInt *TheFalseVal; + // Lock used for guarding access to the leak detector + sys::SmartMutex<true> LLVMObjectsLock; + LeakDetectorImpl<Value> LLVMObjects; + // Lock used for guarding access to the type maps. sys::SmartMutex<true> TypeMapLock; |