diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 19:36:43 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 19:36:43 +0000 |
commit | 286875874af11c4c5a1acd950b4dd82c556ce344 (patch) | |
tree | a24004e6cf6c76f916d74d05d6cc1b42d05c2bb8 /llvm/lib | |
parent | f02def6cbc6c72d5e3433a6567161c88d7f21615 (diff) | |
download | bcm5719-llvm-286875874af11c4c5a1acd950b4dd82c556ce344.tar.gz bcm5719-llvm-286875874af11c4c5a1acd950b4dd82c556ce344.zip |
Fetch alignment directly out of MCSection. NFC.
llvm-svn: 237938
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index ff1c2a9ecc1..8afd00fb7e3 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -255,8 +255,7 @@ class ELFObjectWriter : public MCObjectWriter { void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; void writeSection(MCAssembler &Asm, const SectionIndexMapTy &SectionIndexMap, - uint32_t GroupSymbolIndex, - uint64_t Offset, uint64_t Size, uint64_t Alignment, + uint32_t GroupSymbolIndex, uint64_t Offset, uint64_t Size, const MCSectionELF &Section); }; } @@ -1255,7 +1254,6 @@ void ELFObjectWriter::writeSection(MCAssembler &Asm, const SectionIndexMapTy &SectionIndexMap, uint32_t GroupSymbolIndex, uint64_t Offset, uint64_t Size, - uint64_t Alignment, const MCSectionELF &Section) { uint64_t sh_link = 0; uint64_t sh_info = 0; @@ -1298,9 +1296,9 @@ void ELFObjectWriter::writeSection(MCAssembler &Asm, sh_link = SectionIndexMap.lookup(Section.getAssociatedSection()); WriteSecHdrEntry(ShStrTabBuilder.getOffset(Section.getSectionName()), - Section.getType(), - Section.getFlags(), 0, Offset, Size, sh_link, sh_info, - Alignment, Section.getEntrySize()); + Section.getType(), Section.getFlags(), 0, Offset, Size, + sh_link, sh_info, Section.getAlignment(), + Section.getEntrySize()); } void ELFObjectWriter::writeSectionHeader( @@ -1329,7 +1327,7 @@ void ELFObjectWriter::writeSectionHeader( : Offsets.second - Offsets.first; writeSection(Asm, SectionIndexMap, GroupSymbolIndex, Offsets.first, Size, - SD.getAlignment(), *Section); + *Section); } } |