summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 02:24:55 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 02:24:55 +0000
commit18589de9b1b8c157dea602653042e486128dd9e4 (patch)
treebab599e7ff270803ad7e7936f9ac3c91729281ab /lib/CodeGen/BranchFolding.cpp
parentb91306053d0aebd748bf854f05d93cd1939a1543 (diff)
downloadllvm-18589de9b1b8c157dea602653042e486128dd9e4.tar.gz
llvm-18589de9b1b8c157dea602653042e486128dd9e4.tar.bz2
llvm-18589de9b1b8c157dea602653042e486128dd9e4.tar.xz
eliminate InvalidateLabel and LabelIDList from MMI and replace
them with a counter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 7e27bf5631..13ae43daf6 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -105,17 +105,6 @@ void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) {
while (!MBB->succ_empty())
MBB->removeSuccessor(MBB->succ_end()-1);
- // If there are any labels in the basic block, unregister them from
- // MachineModuleInfo.
- if (MMI && !MBB->empty()) {
- for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
- I != E; ++I) {
- if (I->isLabel())
- // The label ID # is always operand #0, an immediate.
- MMI->InvalidateLabel(I->getOperand(0).getImm());
- }
- }
-
// Remove the block.
MF->erase(MBB);
}