[LLVMdev] Running specific passes

Chris Lattner sabre at nondot.org
Tue Nov 30 08:54:36 PST 2004


On Tue, 30 Nov 2004, Vladimir Prus wrote:
> On Monday 29 November 2004 19:39, Chris Lattner wrote:
> > Just addRequired<TargetData>(), and pass in getAnalysis<TargetData>() as
> > appropriate.
>
> This did not work for me -- it seems the "analyze" program does not provide
> any TargetData. Probably, analysis pass which modifies program is not
> typical, but then it's surely not transformation pass, either.

Hrm, analyze.cpp:143 adds TargetData to the pass manager.  Can you give me
more information about how you are running your pass?

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list