Move FrameInstructions from MachineModuleInfo to MachineFunction

This is per function data so it is better kept at the function instead
of the module.

This is a necessary step to have machine module passes work properly.

Differential Revision: https://reviews.llvm.org/D27185

llvm-svn: 288291
This commit is contained in:
Matthias Braun
2016-11-30 23:48:42 +00:00
parent 39c3c89cdc
commit f23ef437cc
17 changed files with 114 additions and 119 deletions

View File

@@ -230,9 +230,6 @@ bool MachineModuleInfo::doFinalization(Module &M) {
}
void MachineModuleInfo::EndFunction() {
// Clean up frame info.
FrameInstructions.clear();
// Clean up exception info.
LandingPads.clear();
PersonalityTypeCache = EHPersonality::Unknown;