summaryrefslogtreecommitdiff
path: root/include/llvm/PassRegistry.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-07 20:48:10 +0000
committerOwen Anderson <resistor@mac.com>2010-09-07 20:48:10 +0000
commit381f17ee7c07b5a80d7dcdeae3d62e497902ef85 (patch)
tree004dfc9ead5654ca88b54ae2fea40a98446dc3f3 /include/llvm/PassRegistry.h
parenta830f2c4ea8ce1d1bea6823e8b8585eafa7caf33 (diff)
downloadllvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.gz
llvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.bz2
llvm-381f17ee7c07b5a80d7dcdeae3d62e497902ef85.tar.xz
Fix PR7972, in which the PassRegistry was being leaked. As part of this,
switch to using a ManagedStatic for the global PassRegistry instead of a ManagedCleanup, and fix a destruction ordering bug this exposed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassRegistry.h')
-rw-r--r--include/llvm/PassRegistry.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h
index 809dba0bc0..fa269a9c5a 100644
--- a/include/llvm/PassRegistry.h
+++ b/include/llvm/PassRegistry.h
@@ -37,6 +37,7 @@ class PassRegistry {
public:
PassRegistry() : pImpl(0) { }
+ ~PassRegistry();
/// getPassRegistry - Access the global registry object, which is
/// automatically initialized at application launch and destroyed by