From 0397ada8ae1d1bc71037d8cd4a855d3ff04acbbb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Mar 2010 08:17:53 +0000 Subject: [PATCH] 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 --- lib/CodeGen/AsmPrinter/DwarfException.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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;