summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-26 19:20:25 +0000
committerChris Lattner <sabre@nondot.org>2006-06-26 19:20:25 +0000
commitb06021a0f74485dfeb651294b84165603a0d4965 (patch)
tree03c8ccbf7ca1b928547080fc1884832feb79c5f8 /llvm
parent49771a0462b3153b7d31b850d65c35d52b5bf43d (diff)
downloadbcm5719-llvm-b06021a0f74485dfeb651294b84165603a0d4965.tar.gz
bcm5719-llvm-b06021a0f74485dfeb651294b84165603a0d4965.zip
Add a new method.
llvm-svn: 28915
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/AliasSetTracker.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/AliasSetTracker.h b/llvm/include/llvm/Analysis/AliasSetTracker.h
index e7d1cb3d2ec..082d89910b8 100644
--- a/llvm/include/llvm/Analysis/AliasSetTracker.h
+++ b/llvm/include/llvm/Analysis/AliasSetTracker.h
@@ -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)
OpenPOWER on IntegriCloud