[llvm-commits] [llvm] r98484 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Chris Lattner
sabre at nondot.org
Sun Mar 14 00:17:53 PST 2010
Author: lattner
Date: Sun Mar 14 03:17:53 2010
New Revision: 98484
URL: http://llvm.org/viewvc/llvm-project?rev=98484&view=rev
Log:
remove now-dead code, all labels use MCSymbols.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp?rev=98484&r1=98483&r2=98484&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp Sun Mar 14 03:17:53 2010
@@ -475,17 +475,8 @@
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;
More information about the llvm-commits
mailing list