Move range handling for a function to endFunction rather than
when we create the subprogram DIE.