[llvm-commits] [llvm] r108932 - in /llvm/trunk: include/llvm/PassRegistry.h lib/VMCore/Pass.cpp lib/VMCore/PassRegistry.cpp
Owen Anderson
resistor at mac.com
Sun Sep 5 15:47:43 PDT 2010
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.
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.
--Owen
More information about the llvm-commits
mailing list