mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
revert one of the loops to use indicies over iterators because there are vector insertions inside the loop
llvm-svn: 76195
This commit is contained in:
parent
67f2b7d376
commit
ddd0013bb6
@ -456,8 +456,8 @@ bool ELFWriter::doFinalization(Module &M) {
|
|||||||
void ELFWriter::EmitRelocations() {
|
void ELFWriter::EmitRelocations() {
|
||||||
|
|
||||||
// Create Relocation sections for each section which needs it.
|
// Create Relocation sections for each section which needs it.
|
||||||
for (ELFSectionIter I=SectionList.begin(), E=SectionList.end(); I != E; ++I) {
|
for (unsigned i=0, e=SectionList.size(); i != e; ++i) {
|
||||||
ELFSection &S = *(*I);
|
ELFSection &S = *SectionList[i];
|
||||||
|
|
||||||
// This section does not have relocations
|
// This section does not have relocations
|
||||||
if (!S.hasRelocations()) continue;
|
if (!S.hasRelocations()) continue;
|
||||||
@ -578,8 +578,7 @@ void ELFWriter::EmitStringTable() {
|
|||||||
// Set the zero'th symbol to a null byte, as required.
|
// Set the zero'th symbol to a null byte, as required.
|
||||||
StrTab.emitByte(0);
|
StrTab.emitByte(0);
|
||||||
|
|
||||||
// Walk on the symbol list and write symbol names into the
|
// Walk on the symbol list and write symbol names into the string table.
|
||||||
// string table.
|
|
||||||
unsigned Index = 1;
|
unsigned Index = 1;
|
||||||
for (ELFSymIter I=SymbolList.begin(), E=SymbolList.end(); I != E; ++I) {
|
for (ELFSymIter I=SymbolList.begin(), E=SymbolList.end(); I != E; ++I) {
|
||||||
ELFSym &Sym = *(*I);
|
ELFSym &Sym = *(*I);
|
||||||
|
Loading…
Reference in New Issue
Block a user