[LLVMdev] LLVMContext: Who Creates It?
nicolas.geoffray at lip6.fr
Mon Jul 20 09:40:46 PDT 2009
I think you must call (YourPassManager)->doInitialization() to set the
John Criswell wrote:
> Dear Owen,
> Are passes supposed to grab the LLVMContext from the
> Module/Function/BasicBlock passed into their
> runOn<Module/Function/BasicBlock> method, or is the PassManager supposed
> to set the pass's Context member variable automatically?
> I thought it was the latter, but after an SVN update of LLVM, my passes
> have a NULL Context, and the LLVM code looks like the passes are all
> setting their Context member variable explicitly.
> -- John T.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev