mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Fix namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
005752bbe7
commit
098406b42c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user