Convert the last 4 users of GetTempSymbol to createTempSymbol.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 14:58:47 +0000 (14:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 14:58:47 +0000 (14:58 +0000)
Despite using the same name these are unrelated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232485 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
tools/dsymutil/DwarfLinker.cpp

index 63ec1835e68022aa8523c140af26887995e75882..2ca29dc7919baa6f71e78a36891514c57f087dbc 100644 (file)
@@ -1422,8 +1422,8 @@ void DwarfDebug::emitDebugPubSection(
 
     // Emit the header.
     Asm->OutStreamer.AddComment("Length of Public " + Name + " Info");
-    MCSymbol *BeginLabel = Asm->GetTempSymbol("pub" + Name + "_begin", ID);
-    MCSymbol *EndLabel = Asm->GetTempSymbol("pub" + Name + "_end", ID);
+    MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + Name + "_begin", ID);
+    MCSymbol *EndLabel = Asm->createTempSymbol("pub" + Name + "_end", ID);
     Asm->EmitLabelDifference(EndLabel, BeginLabel, 4);
 
     Asm->OutStreamer.EmitLabel(BeginLabel);
index fe1cdf2a1f31f0cd57325988a9504fd9481b26b4..2ad6ad6adf6ae0ea9af9aed52e12f935fad758f3 100644 (file)
@@ -919,9 +919,9 @@ void DwarfStreamer::emitPubSectionForUnit(
   // Start the dwarf pubnames section.
   Asm->OutStreamer.SwitchSection(Sec);
   MCSymbol *BeginLabel =
-      Asm->GetTempSymbol("pub" + SecName + "_begin", Unit.getUniqueID());
+      Asm->createTempSymbol("pub" + SecName + "_begin", Unit.getUniqueID());
   MCSymbol *EndLabel =
-      Asm->GetTempSymbol("pub" + SecName + "_end", Unit.getUniqueID());
+      Asm->createTempSymbol("pub" + SecName + "_end", Unit.getUniqueID());
 
   bool HeaderEmitted = false;
   // Emit the pubnames for this compilation unit.