summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/PassRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/VMCore/PassRegistry.cpp')
-rw-r--r--llvm/lib/VMCore/PassRegistry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/PassRegistry.cpp b/llvm/lib/VMCore/PassRegistry.cpp
index 95ca6814094..1fc26b0648d 100644
--- a/llvm/lib/VMCore/PassRegistry.cpp
+++ b/llvm/lib/VMCore/PassRegistry.cpp
@@ -40,6 +40,7 @@ static ManagedStatic<sys::SmartMutex<true> > Lock;
// PassRegistryImpl
//
+namespace {
struct PassRegistryImpl {
/// PassInfoMap - Keep track of the PassInfo object for each registered pass.
typedef DenseMap<const void*, const PassInfo*> MapType;
@@ -57,6 +58,7 @@ struct PassRegistryImpl {
std::vector<const PassInfo*> ToFree;
std::vector<PassRegistrationListener*> Listeners;
};
+} // end anonymous namespace
void *PassRegistry::getImpl() const {
if (!pImpl)
OpenPOWER on IntegriCloud