[llvm] r232485 - Convert the last 4 users of GetTempSymbol to createTempSymbol.
Rafael Espindola
rafael.espindola at gmail.com
Tue Mar 17 07:58:47 PDT 2015
Author: rafael
Date: Tue Mar 17 09:58:47 2015
New Revision: 232485
URL: http://llvm.org/viewvc/llvm-project?rev=232485&view=rev
Log:
Convert the last 4 users of GetTempSymbol to createTempSymbol.
Despite using the same name these are unrelated.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=232485&r1=232484&r2=232485&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Mar 17 09:58:47 2015
@@ -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);
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=232485&r1=232484&r2=232485&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Tue Mar 17 09:58:47 2015
@@ -919,9 +919,9 @@ void DwarfStreamer::emitPubSectionForUni
// 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.
More information about the llvm-commits
mailing list