diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-25 22:27:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-25 22:27:54 +0000 |
commit | 9be827a87588050d7b2ab9b15a0ab418f3989cdd (patch) | |
tree | 8bd823c2ecd28b50bb31e47a6b5c82e54b4a85d6 | |
parent | c3a388143bad475aa0a565db3a2401cfc1df7273 (diff) |
ImmutablePass's don't need a runOnFunction, nor do they need to explicitly say
that they preserve all xforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3925 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/BasicAliasAnalysis.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/llvm/Analysis/BasicAliasAnalysis.h b/include/llvm/Analysis/BasicAliasAnalysis.h index 55b058b98a..f97cfbabd2 100644 --- a/include/llvm/Analysis/BasicAliasAnalysis.h +++ b/include/llvm/Analysis/BasicAliasAnalysis.h @@ -13,17 +13,7 @@ #include "llvm/Pass.h" struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis { - - // Pass Implementation stuff. This isn't much of a pass. - // - bool runOnFunction(Function &) { return false; } - - // getAnalysisUsage - Does not modify anything. - // - virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesAll(); - } - + // alias - This is the only method here that does anything interesting... // Result alias(const Value *V1, const Value *V2) const; |