diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-01 22:34:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-01 22:34:41 +0000 |
commit | 9dfa1671fc5ba478530ba88877dd508dac20bac4 (patch) | |
tree | 0185e6d3a1dce50ad0dbff76db0474b340eabdcf /include/llvm/PassAnalysisSupport.h | |
parent | 5867de1243c7e43d7bbd5e90287106e3feb7e9e6 (diff) | |
download | external_llvm-9dfa1671fc5ba478530ba88877dd508dac20bac4.zip external_llvm-9dfa1671fc5ba478530ba88877dd508dac20bac4.tar.gz external_llvm-9dfa1671fc5ba478530ba88877dd508dac20bac4.tar.bz2 |
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
Diffstat (limited to 'include/llvm/PassAnalysisSupport.h')
-rw-r--r-- | include/llvm/PassAnalysisSupport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index f0343b3..de37862 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; |