Call doInitialization(), releaseMemory(), and doFinalization() for on-the-fly passes...
authorTorok Edwin <edwintorok@gmail.com>
Mon, 29 Jun 2009 18:49:09 +0000 (18:49 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 29 Jun 2009 18:49:09 +0000 (18:49 +0000)
commit1970a89a49a76ef117c92e58a508e26ecc43ccdb
tree56539d6317c9e4dae91160a7e433aa721e1a8598
parent23737e04235b6cab4c51546887397a9e53bf757c
Call doInitialization(), releaseMemory(), and doFinalization() for on-the-fly passes as well.
Also don't call finalizers for LoopPass if initialization was not called.
Add a unittest that tests that these methods are called, in the proper
order, and the correct number of times.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74438 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopPass.cpp
lib/VMCore/PassManager.cpp
unittests/VMCore/Makefile
unittests/VMCore/PassManagerTest.cpp [new file with mode: 0644]