This needs the callgraph data structure to stick around as long as the

printer does.

llvm-svn: 32236
This commit is contained in:
Chris Lattner 2006-12-05 19:43:42 +00:00
parent 39651ae196
commit e549bac57b
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ namespace {
struct CallGraphPrinter : public ModulePass {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<CallGraph>();
AU.addRequiredTransitive<CallGraph>();
}
virtual bool runOnModule(Module &M) { return false; }