llvm.org GIT mirror llvm / 5229850
Back out r208257 while I investigate tester failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208267 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 6 years ago
1 changed file(s) with 0 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
619619 }
620620
621621 void RuntimeDyldImpl::resolveExternalSymbols() {
622 StringMap ProcessedSymbols;
623
624622 while (!ExternalSymbolRelocations.empty()) {
625623 StringMap::iterator i = ExternalSymbolRelocations.begin();
626624
666664 resolveRelocationList(Relocs, Addr);
667665 }
668666
669 ProcessedSymbols[i->first()] = i->second;
670667 ExternalSymbolRelocations.erase(i);
671 }
672
673 // Restore the relocation entries that were consumed in the loop above:
674 //
675 // FIXME: Replace the following loop with:
676 // std::swap(ProcessedSymbols, ExternalSymbolRelocations)
677 // once StringMap has copy and move construction.
678 for (StringMap::iterator I = ProcessedSymbols.begin(),
679 E = ProcessedSymbols.end();
680 I != E; ++I) {
681 ExternalSymbolRelocations[I->first()] = I->second;
682668 }
683669 }
684670