[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 23 16:16:09 PDT 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Steensgaard.cpp updated: 1.37 -> 1.38
---
Log message:
Update to match the autochaining interface that the AA interface uses
---
Diffs of the changes: (+1 -6)
Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.37 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.38
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.37 Fri Jan 30 16:20:55 2004
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp Sun May 23 16:13:51 2004
@@ -47,7 +47,6 @@
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 @@
// 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 @@
// 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);
}
More information about the llvm-commits
mailing list