This needs the callgraph data structure to stick around as long as the
authorChris Lattner <sabre@nondot.org>
Tue, 5 Dec 2006 19:43:42 +0000 (19:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Dec 2006 19:43:42 +0000 (19:43 +0000)
printer does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32236 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/AnalysisWrappers.cpp

index 5c815f2b0294a2e4e356fb0efc780791916b8302..728b218fe50f4c3f2be90b932ea69144d50655c9 100644 (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; }