diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:27:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:27:06 +0000 |
commit | 97e52e43361e77963145b95a576db11b4d14d309 (patch) | |
tree | 03542b3cac24b157de868bce2678398c756a8587 /tools/analyze/analyze.cpp | |
parent | 0ad0d0e09a6fb78454c253bf84a3ec8ca9575b13 (diff) |
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/analyze/analyze.cpp')
-rw-r--r-- | tools/analyze/analyze.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 85d6ae4d64..8a1d86caf1 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -110,6 +110,7 @@ public: virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(ID); + AU.setPreservesAll(); } }; @@ -137,6 +138,10 @@ struct InstForest : public FunctionPass { void doit(Function *F) { std::cout << analysis::InstForest<char>(F); } + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } }; struct IndVars : public FunctionPass { @@ -152,6 +157,7 @@ struct IndVars : public FunctionPass { void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(LoopInfo::ID); + AU.setPreservesAll(); } }; @@ -183,6 +189,9 @@ struct Exprs : public FunctionPass { std::cout << "\n\n"; } } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } }; |