how to remove MachineInstr ?

Hi,

    I want to remove all the MachineInstr of one MachineBasicBlock
, i iterate the MachineBasicBlock and remove all the MachineInstr,
but I can't remove the TerminatorInstr of the MachineBasicBlock ,
are there some way to walk around it ?

zhangzw