diff options
author | Pedro Artigas <partigas@apple.com> | 2012-12-05 17:12:22 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2012-12-05 17:12:22 +0000 |
commit | d1abec365aa89a8497d9b615ccb4b21c72da9447 (patch) | |
tree | 5cd1325ae59c51774105c3c912264d945035ab1e /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | 1e3b656be52e94c523d5fdb5a586a62ec59c3c51 (diff) |
- 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
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 2d8c26def8..cf9e8b61ef 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -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(); |