[llvm-commits] [llvm] r52944 -	/llvm/trunk/lib/CodeGen/AsmPrinter.cpp
    Dan Gohman 
    gohman at apple.com
       
    Mon Jun 30 17:16:26 PDT 2008
    
    
  
Author: djg
Date: Mon Jun 30 19:16:26 2008
New Revision: 52944
URL: http://llvm.org/viewvc/llvm-project?rev=52944&view=rev
Log:
Minimize duplicated code in AsmPrinter::printLabel.
Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter.cpp?rev=52944&r1=52943&r2=52944&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter.cpp Mon Jun 30 19:16:26 2008
@@ -1318,8 +1318,7 @@
 /// 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 {
    
    
More information about the llvm-commits
mailing list