diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-05-23 21:14:27 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-05-23 21:14:27 +0000 | 
| commit | e345f6b5ab96717b5e253e166e674a4a2ae0ffea (patch) | |
| tree | 1c72a2ef7aa91a529bc1ff414a27707455d78614 /llvm/lib/Analysis | |
| parent | e657eb17cc57258e8d9370346ff5aa8fb98714dc (diff) | |
| download | bcm5719-llvm-e345f6b5ab96717b5e253e166e674a4a2ae0ffea.tar.gz bcm5719-llvm-e345f6b5ab96717b5e253e166e674a4a2ae0ffea.zip | |
Updates to work with the new auto-forwarding AA interface changes
llvm-svn: 13682
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructureAA.cpp | 12 | 
1 files changed, 3 insertions, 9 deletions
| diff --git a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp b/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp index 99b57266329..2c389729263 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp @@ -44,7 +44,6 @@ namespace {        AU.setPreservesAll();                         // Does not transform code        AU.addRequiredTransitive<TDDataStructures>(); // Uses TD Datastructures        AU.addRequiredTransitive<BUDataStructures>(); // Uses BU Datastructures -      AU.addRequired<AliasAnalysis>();              // Chains to another AA impl      }      //------------------------------------------------ @@ -56,12 +55,7 @@ namespace {      void getMustAliases(Value *P, std::vector<Value*> &RetVals); -    bool pointsToConstantMemory(const Value *P) { -      return getAnalysis<AliasAnalysis>().pointsToConstantMemory(P); -    } -     -    AliasAnalysis::ModRefResult -    getModRefInfo(CallSite CS, Value *P, unsigned Size); +    ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);    private:      DSGraph *getGraphForValue(const Value *V); @@ -155,7 +149,7 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,    // FIXME: we could improve on this by checking the globals graph for aliased    // global queries... -  return getAnalysis<AliasAnalysis>().alias(V1, V1Size, V2, V2Size); +  return AliasAnalysis::alias(V1, V1Size, V2, V2Size);  }  /// getModRefInfo - does a callsite modify or reference a value? @@ -212,6 +206,6 @@ void DSAA::getMustAliases(Value *P, std::vector<Value*> &RetVals) {      }    }  #endif -  return getAnalysis<AliasAnalysis>().getMustAliases(P, RetVals); +  return AliasAnalysis::getMustAliases(P, RetVals);  } | 

