1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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 4cd933d737
commit bd4c022c56

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; }