Adjust to new alias analysis interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-12-15 07:22:13 +00:00
parent 248e8ebeff
commit 0af024c5d0
4 changed files with 48 additions and 57 deletions
+4 -7
View File
@@ -57,14 +57,11 @@ bool AliasAnalysis::pointsToConstantMemory(const Value *P) {
return AA->pointsToConstantMemory(P);
}
bool AliasAnalysis::doesNotAccessMemory(Function *F) {
AliasAnalysis::ModRefBehavior
AliasAnalysis::getModRefBehavior(Function *F, CallSite CS,
std::vector<PointerAccessInfo> *Info) {
assert(AA && "AA didn't call InitializeAliasAnalysis in its run method!");
return AA->doesNotAccessMemory(F);
}
bool AliasAnalysis::onlyReadsMemory(Function *F) {
assert(AA && "AA didn't call InitializeAliasAnalysis in its run method!");
return doesNotAccessMemory(F) || AA->onlyReadsMemory(F);
return AA->getModRefBehavior(F, CS, Info);
}
bool AliasAnalysis::hasNoModRefInfoForCalls() const {