Add MachineBasicBlock::getName, and use it in place of getBasicBlock()->getName.