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 b13cda8f3e
commit d7bfe4bb86
1 changed files with 0 additions and 14 deletions

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;
}
}
//===----------------------------------------------------------------------===//