[llvm-commits] [llvm] r108932 - in /llvm/trunk: include/llvm/PassRegistry.h lib/VMCore/Pass.cpp lib/VMCore/PassRegistry.cpp

Chris Lattner clattner at apple.com
Sun Sep 5 16:15:02 PDT 2010


On Sep 5, 2010, at 3:47 PM, Owen Anderson wrote:

> 
> On Sep 5, 2010, at 3:43 PM, Chris Lattner wrote:
>> This FIXME still exists on mainline and seems pretty serious, what's your plan for fixing this?
> 
> It's also not new.  The same problem existed before, I just tried to explain it a bit better now.

Ok, please remove the UNUSED at least.

> That said, since the eventual goal is to get rid of the static initializers as the means of registering classes, the long-term solution will be to have an InitializeLLVMPasses() method (or something similar) that takes a PassRegistry and registers all the core passes with it.  Then, if you later destruct that PassRegistry and create a new one, you can just call InitializeLLVMPasses() on it, in turn, and you will have successfully resurrected the registration.

Sounds good, do you plan to do this in the nearish future?

-Chris



More information about the llvm-commits mailing list