summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 16:23:27 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 16:23:27 +0000
commit345356ee9a30b0d7653219e1d97e60c5cd116241 (patch)
treec06b1b438b8d09c76290ddfd1f787e6fc9bddec3
parent4e3c1139a27aadc7a7b31bd4bb57968e594b723e (diff)
downloadbcm5719-llvm-345356ee9a30b0d7653219e1d97e60c5cd116241.tar.gz
bcm5719-llvm-345356ee9a30b0d7653219e1d97e60c5cd116241.zip
Fix namespace polution.
llvm-svn: 101375
-rw-r--r--llvm/lib/VMCore/Pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp
index 6b941f34996..987712a2dc0 100644
--- a/llvm/lib/VMCore/Pass.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud