diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:26:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:26:51 +0000 |
| commit | a452f86593f4bd667e9056add765131b4bcc8e20 (patch) | |
| tree | 9aaa8decf070fa0e6a958b6420e17d2a87da777e | |
| parent | ee2ff5da74ce33b587d8d0928a348f5e899339c9 (diff) | |
| download | bcm5719-llvm-a452f86593f4bd667e9056add765131b4bcc8e20.tar.gz bcm5719-llvm-a452f86593f4bd667e9056add765131b4bcc8e20.zip | |
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFG
llvm-svn: 2385
| -rw-r--r-- | llvm/include/llvm/Assembly/PrintModulePass.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/Assembly/PrintModulePass.h b/llvm/include/llvm/Assembly/PrintModulePass.h index fbab4e4a450..2d63e6d74f1 100644 --- a/llvm/include/llvm/Assembly/PrintModulePass.h +++ b/llvm/include/llvm/Assembly/PrintModulePass.h @@ -31,6 +31,10 @@ public: (*Out) << M; return false; } + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } }; class PrintFunctionPass : public FunctionPass { @@ -54,6 +58,10 @@ public: (*Out) << Banner << (Value*)F; return false; } + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } }; #endif |

