More complete solution to deleting blocks and debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31129 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey
2006-10-23 14:56:37 +00:00
parent 978b35e502
commit 66ebf0973d
4 changed files with 41 additions and 18 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) {
I != E; ++I) {
if ((unsigned)I->getOpcode() == DWARF_LABELOpc) {
// The label ID # is always operand #0, an immediate.
MDI->RemoveLabelInfo(I->getOperand(0).getImm());
MDI->InvalidateLabel(I->getOperand(0).getImm());
}
}
}