summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-23 21:13:51 +0000
committerChris Lattner <sabre@nondot.org>2004-05-23 21:13:51 +0000
commitbefe4c510e81d167c66853e481faaee7ccc138f9 (patch)
tree385ea56d70dc34ed0a0ac335042a47deca1c8649 /llvm/lib/Analysis/DataStructure
parent32502b8d4a6d51361279a1fdc981c2f26f4bde44 (diff)
downloadbcm5719-llvm-befe4c510e81d167c66853e481faaee7ccc138f9.tar.gz
bcm5719-llvm-befe4c510e81d167c66853e481faaee7ccc138f9.zip
Update to match the autochaining interface that the AA interface uses
llvm-svn: 13680
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r--llvm/lib/Analysis/DataStructure/Steensgaard.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
index cc50571019b..12972eebe5c 100644
--- a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
+++ b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
@@ -47,7 +47,6 @@ namespace {
AliasAnalysis::getAnalysisUsage(AU);
AU.setPreservesAll(); // Does not transform code...
AU.addRequired<LocalDataStructures>(); // Uses local dsgraph
- AU.addRequired<AliasAnalysis>(); // Chains to another AA impl...
}
// print - Implement the Pass::print method...
@@ -63,10 +62,6 @@ 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<AliasAnalysis>().pointsToConstantMemory(P);
- }
private:
void ResolveFunctionCall(Function *F, const DSCallSite &Call,
@@ -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
// some other AA implementation.
//
- return getAnalysis<AliasAnalysis>().alias(V1, V1Size, V2, V2Size);
+ return AliasAnalysis::alias(V1, V1Size, V2, V2Size);
}
OpenPOWER on IntegriCloud