Displaying 1 result from an estimated 1 matches for "amodulepass".
Did you mean:
modulepass
2013 Mar 03
1
[LLVMdev] Can a Function Pass require a Module Pass?
...r 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:
Assertion `Resolver && "...