diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-01-26 14:34:52 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-01-26 14:34:52 +0000 |
commit | f9e5445ed48c1f113a27348ce8afa1062e9717b4 (patch) | |
tree | a12702cb093e23c3f9ab92e5f033d410900b9e79 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | f773e145470ff8e6a4bc4e8eb174edca20c97dac (diff) | |
download | bcm5719-llvm-f9e5445ed48c1f113a27348ce8afa1062e9717b4.tar.gz bcm5719-llvm-f9e5445ed48c1f113a27348ce8afa1062e9717b4.zip |
Make LABEL a builtin opcode.
llvm-svn: 33537
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 69c6f4e62ea..efc382bcfa5 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -74,16 +74,12 @@ void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { while (!MBB->succ_empty()) MBB->removeSuccessor(MBB->succ_end()-1); - // If there is DWARF info to active, check to see if there are any DWARF_LABEL + // If there is DWARF info to active, check to see if there are any LABEL // records in the basic block. If so, unregister them from MachineDebugInfo. if (MDI && !MBB->empty()) { - unsigned DWARF_LABELOpc = TII->getDWARF_LABELOpcode(); - assert(DWARF_LABELOpc && - "Target supports dwarf but didn't implement getDWARF_LABELOpcode!"); - for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); I != E; ++I) { - if ((unsigned)I->getOpcode() == DWARF_LABELOpc) { + if ((unsigned)I->getOpcode() == TargetInstrInfo::LABEL) { // The label ID # is always operand #0, an immediate. MDI->InvalidateLabel(I->getOperand(0).getImm()); } |