summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 21:26:51 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 21:26:51 +0000
commita452f86593f4bd667e9056add765131b4bcc8e20 (patch)
tree9aaa8decf070fa0e6a958b6420e17d2a87da777e
parentee2ff5da74ce33b587d8d0928a348f5e899339c9 (diff)
downloadbcm5719-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.h8
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
OpenPOWER on IntegriCloud