Remove pimpl class from PassRegistry.
authorZachary Turner <zturner@google.com>
Thu, 12 Jun 2014 16:06:51 +0000 (16:06 +0000)
committerZachary Turner <zturner@google.com>
Thu, 12 Jun 2014 16:06:51 +0000 (16:06 +0000)
commit070d532aafa6a07eb0f36d35f89f0bfd17901b47
tree66cf3a15925b9c49eeb7d16cb794ef0a6ff26c19
parent82a51defb68afcb3c9ce3a16133f7e45922ec6a5
Remove pimpl class from PassRegistry.

Since removeRegistrationListener is no longer called during static
destruction, we can get rid of the pimpl in PassRegistry.

This should clean up the code somewhat, increase clarity, and also
allows us to put the Lock as a member of the class, instead of as a
ManagedStatic.

As part of this change, the PassInfo class is moved from
PassSupport.h to its own file, to eliminate the otherwise circular
header dependency between PassRegistry.h and PassSupport.h

Reviewed by: rnk, dblaikie

Differential Revision: http://reviews.llvm.org/D4107

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210793 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/PassInfo.h [new file with mode: 0644]
include/llvm/PassRegistry.h
include/llvm/PassSupport.h
lib/IR/Pass.cpp
lib/IR/PassRegistry.cpp