[llvm-commits] CVS: llvm/include/llvm/Analysis/AliasSetTracker.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jun 26 12:20:37 PDT 2006
Changes in directory llvm/include/llvm/Analysis:
AliasSetTracker.h updated: 1.26 -> 1.27
---
Log message:
Add a new method.
---
Diffs of the changes: (+7 -0)
AliasSetTracker.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/Analysis/AliasSetTracker.h
diff -u llvm/include/llvm/Analysis/AliasSetTracker.h:1.26 llvm/include/llvm/Analysis/AliasSetTracker.h:1.27
--- llvm/include/llvm/Analysis/AliasSetTracker.h:1.26 Wed Nov 30 13:31:23 2005
+++ llvm/include/llvm/Analysis/AliasSetTracker.h Mon Jun 26 14:20:25 2006
@@ -228,6 +228,13 @@
void addPointer(AliasSetTracker &AST, HashNodePair &Entry, unsigned Size,
bool KnownMustAlias = false);
void addCallSite(CallSite CS, AliasAnalysis &AA);
+ void removeCallSite(CallSite CS) {
+ for (unsigned i = 0, e = CallSites.size(); i != e; ++i)
+ if (CallSites[i].getInstruction() == CS.getInstruction()) {
+ CallSites[i] = CallSites.back();
+ CallSites.pop_back();
+ }
+ }
void setVolatile() { Volatile = true; }
/// aliasesPointer - Return true if the specified pointer "may" (or must)
More information about the llvm-commits
mailing list