X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FPassRegistry.h;h=8c28ef5e7e614e9de71e18eb5462ecb2349eb5ea;hb=339fd2d81a02de803e9d29b50e55f9989aaa5ffe;hp=13fc01a9de2174d28480cb09c82feeea1ebb996a;hpb=953be88190e2937fa546a9adf01b90e5d362123e;p=oota-llvm.git diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h index 13fc01a9de2..8c28ef5e7e6 100644 --- a/include/llvm/PassRegistry.h +++ b/include/llvm/PassRegistry.h @@ -41,9 +41,6 @@ struct PassRegistrationListener; class PassRegistry { mutable sys::SmartRWMutex Lock; - /// Only if false, synchronization must use the Lock mutex. - std::atomic locked; - /// PassInfoMap - Keep track of the PassInfo object for each registered pass. typedef DenseMap MapType; MapType PassInfoMap; @@ -55,7 +52,7 @@ class PassRegistry { std::vector Listeners; public: - PassRegistry() : locked(false) {} + PassRegistry() {} ~PassRegistry(); /// getPassRegistry - Access the global registry object, which is @@ -63,10 +60,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;