commit | 27595f297a4d174b1bdcc66c088ef5002e6a9ce8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Jan 21 20:43:39 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Jan 21 20:43:39 2010 +0000 |
tree | b6005d399e888678e0ec4f4f5003b2afd4c8e655 | |
parent | f056e023189e48d0337c7198d9fed32a9285a434 [diff] [blame] |
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; }