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/PassManagers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/PassManagers.h') diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 0716ce5372..1aa0d3a6fa 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -414,6 +414,9 @@ public: /// whether any of the passes modifies the module, and if so, return true. bool runOnFunction(Function &F); bool runOnModule(Module &M); + + /// cleanup - After running all passes, clean up pass manager cache. + void cleanup(); /// doInitialization - Run all of the initializers for the function passes. /// -- cgit v1.2.3