Another step towards getting rid of static ctors for pass registration: have INITIALI...
authorOwen Anderson <resistor@mac.com>
Tue, 5 Oct 2010 22:58:16 +0000 (22:58 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 5 Oct 2010 22:58:16 +0000 (22:58 +0000)
commite2a268fd03fd07f1e5d6121d2a29da42447cea35
tree6daf1aa0ebc3af9572d921a36774ea650e8c1901
parentdf72eaef3d863be99fd45f59c59919a8c1261d05
Another step towards getting rid of static ctors for pass registration: have INITIALIZE_PASS AND INITIALIZE_AG_PASS
expand to an initializeMyPass() function (in additional to the extant static ctors).  Eventually, these will be called
from a big InitializeAllPasses() function, and the PassInfo's they create (which would be leaked if this code were used
at the moment) will be handed off to a PassRegistry for ownership.

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