[llvm-commits] [llvm] r141412 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Oct 7 13:56:23 PDT 2011
Author: nicholas
Date: Fri Oct 7 15:56:23 2011
New Revision: 141412
URL: http://llvm.org/viewvc/llvm-project?rev=141412&view=rev
Log:
Clarify/fix typo. No functionality change.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=141412&r1=141411&r2=141412&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Fri Oct 7 15:56:23 2011
@@ -125,7 +125,7 @@
// e_shnum = # of section header ents
if (NumberOfSections >= ELF::SHN_LORESERVE)
- Write16(0);
+ Write16(ELF::SHN_UNDEF);
else
Write16(NumberOfSections);
@@ -1233,7 +1233,7 @@
FileOff = OS.tell();
- // ... and then the remainting sections ...
+ // ... and then the remaining sections ...
for (unsigned i = NumRegularSections + 1; i < NumSections; ++i)
WriteDataSectionData(Asm, Layout, *Sections[i]);
}
More information about the llvm-commits
mailing list