Displaying 1 result from an estimated 1 matches for "passregistryimpl".
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...// TODO(nipun): Handle deletion.
+  if (NULL == PassRegistryObj) {
+    PassRegistryObj = new PassRegistry();
+  }
+  return PassRegistryObj;
 }
 
-static ManagedStatic<sys::SmartMutex<true> > Lock;
 
 //===----------------------------------------------------------------------===//
 // PassRegistryImpl
@@ -72,26 +77,23 @@ void *PassRegistry::getImpl() const {
 //
 
 PassRegistry::~PassRegistry() {
-  sys::SmartScopedLock<true> Guard(*Lock);
   PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl);
-  
+
   for (std::vector<const PassInfo*>::iterator I = Impl->ToFree....