Debug info: Factor the retrieving of the DIVariable from a MachineInstr
into a function.