remove dead .erase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94098 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index c23715f..67ec2ed 100644
--- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -216,10 +216,8 @@
           const MCSymbol *Sym = GetExternalSymbolSymbol(TempNameStr.str());
           const MCSymbol *&StubSym =
             MMI->getObjFileInfo<MachineModuleInfoMachO>().getFnStubEntry(Sym);
-          if (StubSym == 0) {
-            TempNameStr.erase(TempNameStr.end()-5, TempNameStr.end());
+          if (StubSym == 0)
             StubSym = GetExternalSymbolSymbol(MO.getSymbolName());
-          }
           O << *Sym;
           return;
         }