From 9be827a87588050d7b2ab9b15a0ab418f3989cdd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Sep 2002 22:27:54 +0000 Subject: [PATCH] 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 --- include/llvm/Analysis/BasicAliasAnalysis.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/include/llvm/Analysis/BasicAliasAnalysis.h b/include/llvm/Analysis/BasicAliasAnalysis.h index 55b058b98af..f97cfbabd23 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; -- 2.34.1