diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-07 20:56:23 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-07 20:56:23 +0000 |
| commit | 4eb114303863d78ddf3eb0f09a9b3f900554379a (patch) | |
| tree | 9075dc87b36b235bc6238b75c312dbe5863e8636 /llvm/lib/MC/ELFObjectWriter.cpp | |
| parent | 6f981006f6b023428143b2034ab7cf258c0d0e97 (diff) | |
| download | bcm5719-llvm-4eb114303863d78ddf3eb0f09a9b3f900554379a.tar.gz bcm5719-llvm-4eb114303863d78ddf3eb0f09a9b3f900554379a.zip | |
Clarify/fix typo. No functionality change.
llvm-svn: 141412
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 8931fcac6a5..549a5099376 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -125,7 +125,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize, // e_shnum = # of section header ents if (NumberOfSections >= ELF::SHN_LORESERVE) - Write16(0); + Write16(ELF::SHN_UNDEF); else Write16(NumberOfSections); @@ -1233,7 +1233,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm, 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]); } |

