Make the MachineFunction argument of getFrameRegister const.