summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LeakDetector.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-01 18:42:03 +0000
committerChris Lattner <sabre@nondot.org>2009-11-01 18:42:03 +0000
commit37536b90e1550e62e315a2ca5e4cd8b5033175d6 (patch)
tree42bffbcf61fd8f4728c4a10e356171392c581c73 /llvm/lib/VMCore/LeakDetector.cpp
parent683dcc63b1a1014bb6ca4a51dacfe8a83ca8f714 (diff)
downloadbcm5719-llvm-37536b90e1550e62e315a2ca5e4cd8b5033175d6.tar.gz
bcm5719-llvm-37536b90e1550e62e315a2ca5e4cd8b5033175d6.zip
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. llvm-svn: 85728
Diffstat (limited to 'llvm/lib/VMCore/LeakDetector.cpp')
-rw-r--r--llvm/lib/VMCore/LeakDetector.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/LeakDetector.cpp b/llvm/lib/VMCore/LeakDetector.cpp
index 5ebd4f5ac03..a44f61d822e 100644
--- a/llvm/lib/VMCore/LeakDetector.cpp
+++ b/llvm/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");
OpenPOWER on IntegriCloud