From e3b796a81d68281a765304fb61c980f066c90805 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 1 Jul 2008 00:16:26 +0000 Subject: [PATCH] Minimize duplicated code in AsmPrinter::printLabel. llvm-svn: 52944 --- lib/CodeGen/AsmPrinter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 69bf5c69a70..a682a3f5a88 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -1318,8 +1318,7 @@ void AsmPrinter::printImplicitDef(const MachineInstr *MI) const { /// printLabel - This method prints a local label used by debug and /// exception handling tables. void AsmPrinter::printLabel(const MachineInstr *MI) const { - O << TAI->getPrivateGlobalPrefix() - << "label" << MI->getOperand(0).getImm() << ":\n"; + printLabel(MI->getOperand(0).getImm()); } void AsmPrinter::printLabel(unsigned Id) const {