From: Chris Lattner Date: Sun, 14 Mar 2010 08:17:53 +0000 (+0000) Subject: remove now-dead code, all labels use MCSymbols. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0397ada8ae1d1bc71037d8cd4a855d3ff04acbbb;p=oota-llvm.git remove now-dead code, all labels use MCSymbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 4a64202c478..f7b6bc03120 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -475,17 +475,8 @@ ComputeCallSiteTable(SmallVectorImpl &CallSites, continue; } - MCSymbol *BeginLabel; - if (MI->getOperand(0).isImm()) { - unsigned BeginLabelNo = MI->getOperand(0).getImm(); - assert(BeginLabelNo && "Invalid label!"); - BeginLabel = getDWLabel("label", BeginLabelNo); - } else { - BeginLabel = MI->getOperand(0).getMCSymbol(); - } - - // End of the previous try-range? + MCSymbol *BeginLabel = MI->getOperand(0).getMCSymbol(); if (BeginLabel == LastLabel) SawPotentiallyThrowing = false;