diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-05 19:43:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-05 19:43:42 +0000 |
commit | e549bac57b55202d75366ccc3ca035b3f74ef89b (patch) | |
tree | 0b345bd685d0f515055bdf10a657c68867c58941 | |
parent | 39651ae1967bdbfc6ce4c0d108811cda80a220f5 (diff) | |
download | bcm5719-llvm-e549bac57b55202d75366ccc3ca035b3f74ef89b.tar.gz bcm5719-llvm-e549bac57b55202d75366ccc3ca035b3f74ef89b.zip |
This needs the callgraph data structure to stick around as long as the
printer does.
llvm-svn: 32236
-rw-r--r-- | llvm/tools/opt/AnalysisWrappers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt/AnalysisWrappers.cpp b/llvm/tools/opt/AnalysisWrappers.cpp index 5c815f2b029..728b218fe50 100644 --- a/llvm/tools/opt/AnalysisWrappers.cpp +++ b/llvm/tools/opt/AnalysisWrappers.cpp @@ -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; } |