From: Reid Spencer Date: Tue, 7 Dec 2004 08:11:24 +0000 (+0000) Subject: For PR387:\ X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a7ebfa4111305ea22fc753d4f029eed88149662;p=oota-llvm.git For PR387:\ Add getModRefInfo method to avoid overloaded virtuals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp index b17941fdece..de698e4503f 100644 --- a/lib/Analysis/AliasAnalysisCounter.cpp +++ b/lib/Analysis/AliasAnalysisCounter.cpp @@ -115,6 +115,9 @@ namespace { ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size) { return count(getAnalysis().getModRefInfo(CS, P, Size)); } + ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) { + return AliasAnalysis::getModRefInfo(CS1,CS2); + } }; RegisterOpt diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 17539bd5315..7d6f0fa1d5c 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -82,6 +82,9 @@ namespace { const Value *V2, unsigned V2Size); ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size); + ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) { + return NoAA::getModRefInfo(CS1,CS2); + } /// hasNoModRefInfoForCalls - We can provide mod/ref information against /// non-escaping allocations. diff --git a/lib/Analysis/DataStructure/DataStructureAA.cpp b/lib/Analysis/DataStructure/DataStructureAA.cpp index 6444cc8aeb0..9b39c8fcfb0 100644 --- a/lib/Analysis/DataStructure/DataStructureAA.cpp +++ b/lib/Analysis/DataStructure/DataStructureAA.cpp @@ -56,6 +56,9 @@ namespace { void getMustAliases(Value *P, std::vector &RetVals); ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size); + ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) { + return AliasAnalysis::getModRefInfo(CS1,CS2); + } private: DSGraph *getGraphForValue(const Value *V); diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index 2c4ad4aa4d6..dd8bb354197 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -96,6 +96,9 @@ namespace { AliasResult alias(const Value *V1, unsigned V1Size, const Value *V2, unsigned V2Size); ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size); + ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) { + return AliasAnalysis::getModRefInfo(CS1,CS2); + } bool hasNoModRefInfoForCalls() const { return false; } bool doesNotAccessMemory(Function *F) {