diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-22 17:35:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-22 17:35:07 +0000 |
commit | a3ac427507e078e683d059820496c3dc52e8cac8 (patch) | |
tree | eaa1d157eb1071a4c5b9cb16b7d8c4dc714e59f8 /lib/VMCore/PassRegistry.cpp | |
parent | c54ca79854c6dc5b9d337d296a5fae798292f1b9 (diff) |
Make some symbols static, move classes into anonymous namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassRegistry.cpp')
-rw-r--r-- | lib/VMCore/PassRegistry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/PassRegistry.cpp b/lib/VMCore/PassRegistry.cpp index 95ca681409..1fc26b0648 100644 --- a/lib/VMCore/PassRegistry.cpp +++ b/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) |