eliminate a form of PrintLabelName.
authorChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2010 22:52:49 +0000 (22:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2010 22:52:49 +0000 (22:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97999 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
lib/CodeGen/AsmPrinter/DwarfPrinter.h

index 602145bbddd1d5b4ddbc335dc04a231084541703..633d586e5642b596871ac02007c7b0a3ac1339d2 100644 (file)
@@ -2969,7 +2969,7 @@ void DwarfDebug::emitDebugInlineInfo() {
       else
         O << MAI->getData64bitsDirective();
 
-      PrintLabelName("label", LI->first); EOL("low_pc");
+      PrintLabelName(getDWLabel("label", LI->first)); EOL("low_pc");
     }
   }
 
index 68046284e20e1277d562f8ab007945c40db32f33..fcef94eb64cd96d7f8b15603b3bf280dd465c675 100644 (file)
@@ -219,11 +219,6 @@ void DwarfPrinter::PrintLabelName(const MCSymbol *Label) const {
   O << Label->getName();
 }
 
-void DwarfPrinter::PrintLabelName(const char *Tag, unsigned Number) const {
-  // FIXME: REMOVE.
-  O << MAI->getPrivateGlobalPrefix() << Tag;
-  if (Number) O << Number;
-}
 void DwarfPrinter::PrintLabelName(const char *Tag, unsigned Number,
                                   const char *Suffix) const {
   // FIXME: REMOVE.
@@ -291,9 +286,9 @@ void DwarfPrinter::EmitDifference(const char *TagHi, unsigned NumberHi,
     O << "\t.set\t";
     PrintLabelName("set", SetCounter, Flavor);
     O << ",";
-    PrintLabelName(TagHi, NumberHi);
+    PrintLabelName(getDWLabel(TagHi, NumberHi));
     O << "-";
-    PrintLabelName(TagLo, NumberLo);
+    PrintLabelName(getDWLabel(TagLo, NumberLo));
     O << "\n";
     
     PrintRelDirective(IsSmall);
@@ -301,9 +296,9 @@ void DwarfPrinter::EmitDifference(const char *TagHi, unsigned NumberHi,
     ++SetCounter;
   } else {
     PrintRelDirective(IsSmall);
-    PrintLabelName(TagHi, NumberHi);
+    PrintLabelName(getDWLabel(TagHi, NumberHi));
     O << "-";
-    PrintLabelName(TagLo, NumberLo);
+    PrintLabelName(getDWLabel(TagLo, NumberLo));
   }
 }
 
index 3c9d555f3f9f2b68cc699e62868b2d758bc4266f..c4b9497bb538a8a8045af99726d4fb0878d11732 100644 (file)
@@ -125,7 +125,6 @@ public:
   /// PrintLabelName - Print label name in form used by Dwarf writer.
   ///
   void PrintLabelName(const MCSymbol *Label) const;
-  void PrintLabelName(const char *Tag, unsigned Number) const;
   void PrintLabelName(const char *Tag, unsigned Number,
                       const char *Suffix) const;