diff options
-rw-r--r-- | include/llvm/Target/Mangler.h | 6 | ||||
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 6 |
2 files changed, 1 insertions, 11 deletions
diff --git a/include/llvm/Target/Mangler.h b/include/llvm/Target/Mangler.h index d8dc8ec8c4..45cbf9da1e 100644 --- a/include/llvm/Target/Mangler.h +++ b/include/llvm/Target/Mangler.h @@ -51,12 +51,6 @@ public: // symbols. Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(1) {} - /// getUniqueID() - Allocate and return a unique ID. - /// FIXME: Remove this. - unsigned getUniqueID() { - return NextAnonGlobalID++; - } - /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix /// and the specified global variable's name. If the global variable doesn't /// have a name, this fills in a unique name for the global. diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index b47dad5c94..5a960d8085 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -326,11 +326,7 @@ getExprForDwarfReference(const MCSymbol *Sym, Mangler *Mang, case dwarf::DW_EH_PE_pcrel: { // Emit a label to the streamer for the current position. This gives us // .-foo addressing. - SmallString<128> Name; - Mang->getNameWithPrefix(Name, Twine("PCtemp") + Twine(Mang->getUniqueID()), - Mangler::Private); - - MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol(Name.str()); + MCSymbol *PCSym = getContext().GetOrCreateTemporarySymbol(); Streamer.EmitLabel(PCSym); const MCExpr *PC = MCSymbolRefExpr::Create(PCSym, getContext()); return MCBinaryExpr::CreateSub(Res, PC, getContext()); |