forked from OSchip/llvm-project
ImmutablePass's don't need a runOnFunction, nor do they need to explicitly say
that they preserve all xforms llvm-svn: 3925
This commit is contained in:
parent
ceae380b2c
commit
635d8919a7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue