Add a new method.
authorChris Lattner <sabre@nondot.org>
Mon, 26 Jun 2006 19:20:25 +0000 (19:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Jun 2006 19:20:25 +0000 (19:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28915 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AliasSetTracker.h

index e7d1cb3d2ec5e0cadad3b098e77ac31563bd713f..082d89910b84e5a2df8d3f6ab0c46e49c8b7d07f 100644 (file)
@@ -228,6 +228,13 @@ private:
   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)