1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Back out r208257 while I investigate tester failures.

llvm-svn: 208267
This commit is contained in:
Lang Hames 2014-05-07 23:35:53 +00:00
parent f5258e4d2c
commit eb0e367f97

View File

@ -620,8 +620,6 @@ void RuntimeDyldImpl::resolveRelocationList(const RelocationList &Relocs,
}
void RuntimeDyldImpl::resolveExternalSymbols() {
StringMap<RelocationList> ProcessedSymbols;
while (!ExternalSymbolRelocations.empty()) {
StringMap<RelocationList>::iterator i = ExternalSymbolRelocations.begin();
@ -667,20 +665,8 @@ void RuntimeDyldImpl::resolveExternalSymbols() {
resolveRelocationList(Relocs, Addr);
}
ProcessedSymbols[i->first()] = i->second;
ExternalSymbolRelocations.erase(i);
}
// Restore the relocation entries that were consumed in the loop above:
//
// FIXME: Replace the following loop with:
// std::swap(ProcessedSymbols, ExternalSymbolRelocations)
// once StringMap has copy and move construction.
for (StringMap<RelocationList>::iterator I = ProcessedSymbols.begin(),
E = ProcessedSymbols.end();
I != E; ++I) {
ExternalSymbolRelocations[I->first()] = I->second;
}
}
//===----------------------------------------------------------------------===//