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/LeakDetector.cpp | |
parent | 280f3fedbfc8d76014dbb25aecfd57a847fd6183 (diff) | |
download | llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.tar.gz llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.tar.bz2 llvm-c4775e4b973aaf6695dc00a3403b8b64f5257568.tar.xz |
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/LeakDetector.cpp')
-rw-r--r-- | lib/VMCore/LeakDetector.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 5ebd4f5ac0..a44f61d822 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/lib/VMCore/LeakDetector.cpp @@ -36,7 +36,6 @@ void LeakDetector::addGarbageObjectImpl(void *Object) { void LeakDetector::addGarbageObjectImpl(const Value *Object) { LLVMContextImpl *pImpl = Object->getContext().pImpl; - sys::SmartScopedLock<true> Lock(pImpl->LLVMObjectsLock); pImpl->LLVMObjects.addGarbage(Object); } @@ -47,7 +46,6 @@ void LeakDetector::removeGarbageObjectImpl(void *Object) { void LeakDetector::removeGarbageObjectImpl(const Value *Object) { LLVMContextImpl *pImpl = Object->getContext().pImpl; - sys::SmartScopedLock<true> Lock(pImpl->LLVMObjectsLock); pImpl->LLVMObjects.removeGarbage(Object); } @@ -55,7 +53,6 @@ void LeakDetector::checkForGarbageImpl(LLVMContext &Context, const std::string &Message) { LLVMContextImpl *pImpl = Context.pImpl; sys::SmartScopedLock<true> Lock(*ObjectsLock); - sys::SmartScopedLock<true> CLock(pImpl->LLVMObjectsLock); Objects->setName("GENERIC"); pImpl->LLVMObjects.setName("LLVM"); |