summaryrefslogtreecommitdiff
path: root/include/llvm/PassRegistry.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-16 23:32:35 +0000
committerOwen Anderson <resistor@mac.com>2010-09-16 23:32:35 +0000
commit1e3e6362c8def5abcbc9a89c02619a0912177f7e (patch)
treefd3675c9cbda3c04c8482036dcfe49cda057ecbb /include/llvm/PassRegistry.h
parentfc24c1a7ba4ad1383726079eed6d67097614ee84 (diff)
downloadllvm-1e3e6362c8def5abcbc9a89c02619a0912177f7e.tar.gz
llvm-1e3e6362c8def5abcbc9a89c02619a0912177f7e.tar.bz2
llvm-1e3e6362c8def5abcbc9a89c02619a0912177f7e.tar.xz
Do not expose the locking for the PassRegistry in the header. Be careful to
synchronize any method that might lazily initialize the pImpl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassRegistry.h')
-rw-r--r--include/llvm/PassRegistry.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h
index 8b7f036e20..31d48a4e28 100644
--- a/include/llvm/PassRegistry.h
+++ b/include/llvm/PassRegistry.h
@@ -18,7 +18,6 @@
#define LLVM_PASSREGISTRY_H
#include "llvm/ADT/StringRef.h"
-#include "llvm/System/Mutex.h"
namespace llvm {
@@ -33,7 +32,6 @@ struct PassRegistrationListener;
/// each thread.
class PassRegistry {
mutable void *pImpl;
- mutable sys::SmartMutex<true> Lock;
void *getImpl() const;
public: