Generates conditional branch instead of fake ones for Select instruction in some...
[oota-llvm.git] / include / llvm / PassRegistry.h
index 13fc01a9de2174d28480cb09c82feeea1ebb996a..e7fe1f53a4d40ba773367c192e11ee592f116ca4 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef LLVM_PASSREGISTRY_H
 #define LLVM_PASSREGISTRY_H
 
-#include "llvm-c/Core.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/StringMap.h"
@@ -41,9 +40,6 @@ struct PassRegistrationListener;
 class PassRegistry {
   mutable sys::SmartRWMutex<true> Lock;
 
-  /// Only if false, synchronization must use the Lock mutex.
-  std::atomic<bool> locked;
-
   /// PassInfoMap - Keep track of the PassInfo object for each registered pass.
   typedef DenseMap<const void *, const PassInfo *> MapType;
   MapType PassInfoMap;
@@ -55,7 +51,7 @@ class PassRegistry {
   std::vector<PassRegistrationListener *> Listeners;
 
 public:
-  PassRegistry() : locked(false) {}
+  PassRegistry() {}
   ~PassRegistry();
 
   /// getPassRegistry - Access the global registry object, which is
@@ -63,10 +59,6 @@ public:
   /// llvm_shutdown.
   static PassRegistry *getPassRegistry();
 
-  /// Enables fast thread synchronization in getPassInfo().
-  /// After calling lock() no more passes may be registered.
-  void lock() { locked = true; }
-
   /// getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass'
   /// type identifier (&MyPass::ID).
   const PassInfo *getPassInfo(const void *TI) const;