[LLVMdev] Cannot use function pass in a module pass
Duncan Sands
baldrick at free.fr
Thu Jun 16 01:50:18 PDT 2011
Hi Alexey,
> Hi. I'm trying to implement a module pass which can be dynamically
> loaded by `opt` (against up-to-date llvm from svn).
> Despite what the tutorial
> (http://llvm.org/docs/WritingAnLLVMPass.html) states in my module pass
> I cannot perform getAnalysis and fetch the function pass result.
> When trying to do so `opt` fails with the following mesage:
RegisterPass takes an "is_analysis" argument that you should probably set
to true when registering your analysis pass.
Ciao, Duncan.
More information about the llvm-dev
mailing list