remove dead .erase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-21 20:43:39 +00:00
parent f38a33cd0a
commit 717ce2b8d8

View File

@ -216,10 +216,8 @@ namespace {
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;
}