diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-05-30 01:36:48 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-05-30 01:36:48 +0000 |
| commit | 1da971706e55edfe4e035e1795065364b9ae74c0 (patch) | |
| tree | 41102df5ba0240e9daf01ba9e4433103d88b58d1 | |
| parent | 2d9a3be2ab4444ce222abcfd2eb5c490986c42a6 (diff) | |
| download | bcm5719-llvm-1da971706e55edfe4e035e1795065364b9ae74c0.tar.gz bcm5719-llvm-1da971706e55edfe4e035e1795065364b9ae74c0.zip | |
Replace a few more uses of OutputSections.
llvm-svn: 304182
| -rw-r--r-- | lld/ELF/Writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 72035365be2..7bb80f45730 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1717,7 +1717,7 @@ template <class ELFT> void Writer<ELFT>::writeHeader() { EHdr->e_ehsize = sizeof(Elf_Ehdr); EHdr->e_phnum = Phdrs.size(); EHdr->e_shentsize = sizeof(Elf_Shdr); - EHdr->e_shnum = OutputSections.size() + 1; + EHdr->e_shnum = OutputSectionCommands.size() + 1; EHdr->e_shstrndx = InX::ShStrTab->OutSec->SectionIndex; if (Config->EMachine == EM_ARM) @@ -1749,8 +1749,8 @@ template <class ELFT> void Writer<ELFT>::writeHeader() { // Write the section header table. Note that the first table entry is null. auto *SHdrs = reinterpret_cast<Elf_Shdr *>(Buf + EHdr->e_shoff); - for (OutputSection *Sec : OutputSections) - Sec->writeHeaderTo<ELFT>(++SHdrs); + for (OutputSectionCommand *Cmd : OutputSectionCommands) + Cmd->Sec->writeHeaderTo<ELFT>(++SHdrs); } // Open a result file. |

