[llvm-commits] [llvm] r94098 - /llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Thu Jan 21 12:43:39 PST 2010
Author: lattner
Date: Thu Jan 21 14:43:39 2010
New Revision: 94098
URL: http://llvm.org/viewvc/llvm-project?rev=94098&view=rev
Log:
remove dead .erase.
Modified:
llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp?rev=94098&r1=94097&r2=94098&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp Thu Jan 21 14:43:39 2010
@@ -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;
}
More information about the llvm-commits
mailing list