Guard the listeners list. Unfortunately, this requires a real static rather
authorOwen Anderson <resistor@mac.com>
Wed, 24 Jun 2009 00:25:42 +0000 (00:25 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 24 Jun 2009 00:25:42 +0000 (00:25 +0000)
commit6b96f6cfeb41576b62190483f8d87d3da1572486
treeafd0c9c13e90aa5960bb2d642331d8cbf7f7ddc3
parenta96751fc8ff1cc9a225ffbba73de53e2b9e1ae35
Guard the listeners list.  Unfortunately, this requires a real static rather
than a managed static because other managed statics can (and do) access this
list in their destructors.  Yes, I know it's horrible.

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