From fb619ef95cddc76635e57e8f7018010ffe65ded6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Nov 2005 19:31:23 +0000 Subject: [PATCH] Add a simple clear() method llvm-svn: 24543 --- llvm/include/llvm/Analysis/AliasSetTracker.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Analysis/AliasSetTracker.h b/llvm/include/llvm/Analysis/AliasSetTracker.h index 2f693d41f8cc..e7d1cb3d2ec5 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. ///