From 9dfa1671fc5ba478530ba88877dd508dac20bac4 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 1 Apr 2009 22:34:41 +0000 Subject: Clean up pass manager cache after each run. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68254 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/PassAnalysisSupport.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm/PassAnalysisSupport.h') diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index f0343b3911..de37862b62 100644 --- a/include/llvm/PassAnalysisSupport.h +++ b/include/llvm/PassAnalysisSupport.h @@ -143,6 +143,12 @@ public: AnalysisImpls.push_back(pir); } + /// clearAnalysisImpls - Clear cache that is used to connect a pass to the + /// the analysis (PassInfo). + void clearAnalysisImpls() { + AnalysisImpls.clear(); + } + // getAnalysisIfAvailable - Return analysis result or null if it doesn't exist Pass *getAnalysisIfAvailable(AnalysisID ID, bool Direction) const; -- cgit v1.2.3