[llvm-commits] [llvm] r101375 - /llvm/trunk/lib/VMCore/Pass.cpp
Dan Gohman
gohman at apple.com
Thu Apr 15 09:23:27 PDT 2010
Author: djg
Date: Thu Apr 15 11:23:27 2010
New Revision: 101375
URL: http://llvm.org/viewvc/llvm-project?rev=101375&view=rev
Log:
Fix namespace polution.
Modified:
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=101375&r1=101374&r2=101375&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Thu Apr 15 11:23:27 2010
@@ -318,6 +318,8 @@
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 @@
}
ManagedCleanup<&cleanupPassRegistrar> registrarCleanup;
+}
+
// getPassInfo - Return the PassInfo data structure that corresponds to this
// pass...
const PassInfo *Pass::getPassInfo() const {
More information about the llvm-commits
mailing list