summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-30 19:31:23 +0000
committerChris Lattner <sabre@nondot.org>2005-11-30 19:31:23 +0000
commitfb619ef95cddc76635e57e8f7018010ffe65ded6 (patch)
tree2426e4287dde435d913626493939a58d7b4c3162
parent11695c053778aca1d46740818e303295233756ee (diff)
downloadbcm5719-llvm-fb619ef95cddc76635e57e8f7018010ffe65ded6.tar.gz
bcm5719-llvm-fb619ef95cddc76635e57e8f7018010ffe65ded6.zip
Add a simple clear() method
llvm-svn: 24543
-rw-r--r--llvm/include/llvm/Analysis/AliasSetTracker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/AliasSetTracker.h b/llvm/include/llvm/Analysis/AliasSetTracker.h
index 2f693d41f8c..e7d1cb3d2ec 100644
--- a/llvm/include/llvm/Analysis/AliasSetTracker.h
+++ b/llvm/include/llvm/Analysis/AliasSetTracker.h
@@ -290,6 +290,11 @@ public:
bool remove(InvokeInst *II) { return remove(CallSite(II)); }
bool remove(Instruction *I);
void remove(AliasSet &AS);
+
+ void clear() {
+ PointerMap.clear();
+ AliasSets.clear();
+ }
/// getAliasSets - Return the alias sets that are active.
///
OpenPOWER on IntegriCloud