mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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
This commit is contained in:
parent
c3a388143b
commit
9be827a875
@ -13,17 +13,7 @@
|
|||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
|
|
||||||
struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
|
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...
|
// alias - This is the only method here that does anything interesting...
|
||||||
//
|
//
|
||||||
Result alias(const Value *V1, const Value *V2) const;
|
Result alias(const Value *V1, const Value *V2) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user