From: Chris Lattner Date: Fri, 30 Jan 2004 22:20:55 +0000 (+0000) Subject: Forward method request to chained aa implementation X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=92e41d598252260eec12d65197c4fe3d425de5d8;p=oota-llvm.git Forward method request to chained aa implementation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11024 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/DataStructureAA.cpp b/lib/Analysis/DataStructure/DataStructureAA.cpp index 8a2e0caa425..1f244708bd3 100644 --- a/lib/Analysis/DataStructure/DataStructureAA.cpp +++ b/lib/Analysis/DataStructure/DataStructureAA.cpp @@ -53,6 +53,10 @@ namespace { void getMustAliases(Value *P, std::vector &RetVals); + bool pointsToConstantMemory(const Value *P) { + return getAnalysis().pointsToConstantMemory(P); + } + private: DSGraph *getGraphForValue(const Value *V); }; diff --git a/lib/Analysis/DataStructure/Steensgaard.cpp b/lib/Analysis/DataStructure/Steensgaard.cpp index 426795e8bde..cc50571019b 100644 --- a/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/lib/Analysis/DataStructure/Steensgaard.cpp @@ -63,6 +63,10 @@ namespace { // alias - This is the only method here that does anything interesting... AliasResult alias(const Value *V1, unsigned V1Size, const Value *V2, unsigned V2Size); + + bool pointsToConstantMemory(const Value *P) { + return getAnalysis().pointsToConstantMemory(P); + } private: void ResolveFunctionCall(Function *F, const DSCallSite &Call,