diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-25 00:48:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-25 00:48:42 +0000 |
commit | 43d19d61d4ab124462152de2e0848ce4b2d8bdbe (patch) | |
tree | 8e538a4de4f5983ae947a898d140bc7debf7a117 /llvm/lib/Analysis/LoopDependenceAnalysis.cpp | |
parent | 67395e7c2c1c9ed95b147bd13ff25cf8b9983685 (diff) | |
download | bcm5719-llvm-43d19d61d4ab124462152de2e0848ce4b2d8bdbe.tar.gz bcm5719-llvm-43d19d61d4ab124462152de2e0848ce4b2d8bdbe.zip |
Make AliasAnalysis and related classes use
getAnalysisIfAvailable<TargetData>().
llvm-svn: 77028
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index f185c967958..60efa776353 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp @@ -119,8 +119,8 @@ void LoopDependenceAnalysis::analysePair(DependencePair *P) const { const Value *aobj = aptr->getUnderlyingObject(); const Value *bobj = bptr->getUnderlyingObject(); AliasAnalysis::AliasResult alias = AA->alias( - aobj, AA->getTargetData().getTypeStoreSize(aobj->getType()), - bobj, AA->getTargetData().getTypeStoreSize(bobj->getType())); + aobj, AA->getTypeStoreSize(aobj->getType()), + bobj, AA->getTypeStoreSize(bobj->getType())); // We can not analyse objects if we do not know about their aliasing. if (alias == AliasAnalysis::MayAlias) { |