- Added calls to doInitialization/doFinalization to immutable passes

- fixed ordering of calls to doFinalization to be the reverse of the pass run order due to potential dependencies
- fixed machine module info to operate in the doInitialization/doFinalization model, also fixes some FIXMEs

reviewed by Evan Cheng <evan.cheng@apple.com>



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Pedro Artigas
2012-12-05 17:12:22 +00:00
parent 1e3b656be5
commit d1abec365a
3 changed files with 56 additions and 15 deletions

View File

@@ -180,6 +180,10 @@ public:
const MCObjectFileInfo *MOFI);
~MachineModuleInfo();
// Initialization and Finalization
virtual bool doInitialization(Module &);
virtual bool doFinalization(Module &);
/// EndFunction - Discard function meta information.
///
void EndFunction();