From: Chris Lattner Date: Tue, 5 Dec 2006 19:43:42 +0000 (+0000) Subject: This needs the callgraph data structure to stick around as long as the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8257bee70bc45179d401e970faf67405b6cf46a2;p=oota-llvm.git This needs the callgraph data structure to stick around as long as the printer does. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 5c815f2b029..728b218fe50 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -67,7 +67,7 @@ namespace { struct CallGraphPrinter : public ModulePass { virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); - AU.addRequired(); + AU.addRequiredTransitive(); } virtual bool runOnModule(Module &M) { return false; }