search for: padriver

Displaying 1 result from an estimated 1 matches for "padriver".

Did you mean: adriver
2013 Mar 03
1
[LLVMdev] Can a Function Pass require a Module Pass?
Dear LLVMers, I am implementing a Function Pass and I would like to use analysis obtained from a Module Pass. Some extracts of my code look like that: struct MyPass : public FunctionPass { static char ID; MyPass() : FunctionPass(ID) { PADriver &PD = getAnalysis<AModulePass>(); ... virtual void getAnalysisUsage(AnalysisUsage &AU) const{ AU.setPreservesAll(); AU.addRequired<AModulePass>(); } But when I try to run my pass, I get the following error at the point os getAnalysis:...