From 8257bee70bc45179d401e970faf67405b6cf46a2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Dec 2006 19:43:42 +0000 Subject: [PATCH] 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 --- tools/opt/AnalysisWrappers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1