diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:42:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:42:03 +0000 |
commit | c4775e4b973aaf6695dc00a3403b8b64f5257568 (patch) | |
tree | 1f5f53a0faaa6679e85df2bf33c2a7a99085e3c2 /lib/VMCore/LLVMContextImpl.h | |
parent | 280f3fedbfc8d76014dbb25aecfd57a847fd6183 (diff) | |
download | external_llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.zip external_llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.tar.gz external_llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.tar.bz2 |
remove a bunch of locking from LLVMContextImpl. Since only one thread
can be banging on a context at a time, this isn't needed. Owen, please
review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index fd39b0c..1c3244b 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -22,8 +22,6 @@ #include "llvm/Metadata.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" -#include "llvm/System/Mutex.h" -#include "llvm/System/RWMutex.h" #include "llvm/Assembly/Writer.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/APInt.h" @@ -132,18 +130,8 @@ 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; - - // Recursive lock used for guarding access to AbstractTypeUsers. - // NOTE: The true template parameter means this will no-op when we're not in - // multithreaded mode. - sys::SmartMutex<true> AbstractTypeUsersLock; - // Basic type instances. const Type VoidTy; const Type LabelTy; |