[LLVMdev] Use Callgraph

Haopeng Liu hyliuhp at gmail.com
Sun Jun 7 19:02:45 PDT 2015


Hi All,

I tried to use CallGraph in llvm by adding 
"AU.addRequired<CallGraph>();" in getAnalysisUsage function.

But it reports an error:

include/llvm/PassAnalysisSupport.h:56:39: error: ‘ID’ is not a member of 
‘llvm::CallGraph’
      return addRequiredID(PassClass::ID);

How to use it correctly?

Thanks,
Haopeng




More information about the llvm-dev mailing list