diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-15 16:23:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-15 16:23:27 +0000 |
commit | 098406b42ca7cd05745215020ae5ed82194b7c0a (patch) | |
tree | b02a907fc8c5cfdd3bafbbb266c9eae7219743f6 /lib/VMCore/Pass.cpp | |
parent | 005752bbe72868b548bba93dbc1ea46ffe8e5b2c (diff) | |
download | external_llvm-098406b42ca7cd05745215020ae5ed82194b7c0a.zip external_llvm-098406b42ca7cd05745215020ae5ed82194b7c0a.tar.gz external_llvm-098406b42ca7cd05745215020ae5ed82194b7c0a.tar.bz2 |
Fix namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r-- | lib/VMCore/Pass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 6b941f3..987712a 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -318,6 +318,8 @@ static PassRegistrar *getPassRegistrar() { return PassRegistrarObj; } +namespace { + // FIXME: We use ManagedCleanup to erase the pass registrar on shutdown. // Unfortunately, passes are registered with static ctors, and having // llvm_shutdown clear this map prevents successful ressurection after @@ -331,6 +333,8 @@ void cleanupPassRegistrar(void*) { } ManagedCleanup<&cleanupPassRegistrar> registrarCleanup; +} + // getPassInfo - Return the PassInfo data structure that corresponds to this // pass... const PassInfo *Pass::getPassInfo() const { |