Use a ManagedCleanup to prevent leaking the PassRegistrar map. In breaks the
authorOwen Anderson <resistor@mac.com>
Tue, 6 Apr 2010 04:20:48 +0000 (04:20 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 6 Apr 2010 04:20:48 +0000 (04:20 +0000)
commitffb731245827584c7956106cb6b966b4285dd1e6
tree2d2b1df0f634fdb9e4f42743319709dc0487be17
parentadc6e06ff0c5950abda86574c2da1fc6b863b75c
Use a ManagedCleanup to prevent leaking the PassRegistrar map.  In breaks the
use case where someone wants to resurrect LLVM after calling llvm_shutdown,
but I'm not aware of any clients that are affected by this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Pass.cpp