1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Clarify/fix typo. No functionality change.

llvm-svn: 141412
This commit is contained in:
Nick Lewycky 2011-10-07 20:56:23 +00:00
parent 78d177b5ce
commit 112a7ae899

View File

@ -125,7 +125,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
// e_shnum = # of section header ents // e_shnum = # of section header ents
if (NumberOfSections >= ELF::SHN_LORESERVE) if (NumberOfSections >= ELF::SHN_LORESERVE)
Write16(0); Write16(ELF::SHN_UNDEF);
else else
Write16(NumberOfSections); Write16(NumberOfSections);
@ -1233,7 +1233,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
FileOff = OS.tell(); FileOff = OS.tell();
// ... and then the remainting sections ... // ... and then the remaining sections ...
for (unsigned i = NumRegularSections + 1; i < NumSections; ++i) for (unsigned i = NumRegularSections + 1; i < NumSections; ++i)
WriteDataSectionData(Asm, Layout, *Sections[i]); WriteDataSectionData(Asm, Layout, *Sections[i]);
} }