From 6fe99b7d5cdd27008bf9d9c65e740b2b623fc1b5 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Mar 2015 14:58:47 +0000 Subject: [PATCH] Convert the last 4 users of GetTempSymbol to createTempSymbol. 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 | 4 ++-- tools/dsymutil/DwarfLinker.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 63ec1835e68..2ca29dc7919 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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); diff --git a/tools/dsymutil/DwarfLinker.cpp b/tools/dsymutil/DwarfLinker.cpp index fe1cdf2a1f3..2ad6ad6adf6 100644 --- a/tools/dsymutil/DwarfLinker.cpp +++ b/tools/dsymutil/DwarfLinker.cpp @@ -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.