forked from OSchip/llvm-project
Update to match the autochaining interface that the AA interface uses
llvm-svn: 13680
This commit is contained in:
parent
32502b8d4a
commit
befe4c510e
|
@ -47,7 +47,6 @@ namespace {
|
||||||
AliasAnalysis::getAnalysisUsage(AU);
|
AliasAnalysis::getAnalysisUsage(AU);
|
||||||
AU.setPreservesAll(); // Does not transform code...
|
AU.setPreservesAll(); // Does not transform code...
|
||||||
AU.addRequired<LocalDataStructures>(); // Uses local dsgraph
|
AU.addRequired<LocalDataStructures>(); // Uses local dsgraph
|
||||||
AU.addRequired<AliasAnalysis>(); // Chains to another AA impl...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// print - Implement the Pass::print method...
|
// print - Implement the Pass::print method...
|
||||||
|
@ -64,10 +63,6 @@ namespace {
|
||||||
AliasResult alias(const Value *V1, unsigned V1Size,
|
AliasResult alias(const Value *V1, unsigned V1Size,
|
||||||
const Value *V2, unsigned V2Size);
|
const Value *V2, unsigned V2Size);
|
||||||
|
|
||||||
bool pointsToConstantMemory(const Value *P) {
|
|
||||||
return getAnalysis<AliasAnalysis>().pointsToConstantMemory(P);
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ResolveFunctionCall(Function *F, const DSCallSite &Call,
|
void ResolveFunctionCall(Function *F, const DSCallSite &Call,
|
||||||
DSNodeHandle &RetVal);
|
DSNodeHandle &RetVal);
|
||||||
|
@ -238,5 +233,5 @@ AliasAnalysis::AliasResult Steens::alias(const Value *V1, unsigned V1Size,
|
||||||
// If we cannot determine alias properties based on our graph, fall back on
|
// If we cannot determine alias properties based on our graph, fall back on
|
||||||
// some other AA implementation.
|
// some other AA implementation.
|
||||||
//
|
//
|
||||||
return getAnalysis<AliasAnalysis>().alias(V1, V1Size, V2, V2Size);
|
return AliasAnalysis::alias(V1, V1Size, V2, V2Size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue