At the beginning of doFinalization set the MachineFunction to