From aae59561d634b07882bbfbe7edbed06d2ec4681c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 29 Apr 2016 23:20:30 +0000 Subject: [PATCH] Use simpler types. NFC. llvm-svn: 268133 --- lld/ELF/OutputSections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 6bb9491..ba745ad 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1522,7 +1522,7 @@ SymbolTableSection::getOutputSection(SymbolBody *Sym) { template VersionTableSection::VersionTableSection() : OutputSectionBase(".gnu.version", SHT_GNU_versym, SHF_ALLOC) { - this->Header.sh_addralign = sizeof(typename ELFT::Half); + this->Header.sh_addralign = sizeof(uint16_t); } template void VersionTableSection::finalize() { @@ -1547,7 +1547,7 @@ template void VersionTableSection::writeTo(uint8_t *Buf) { template VersionNeedSection::VersionNeedSection() : OutputSectionBase(".gnu.version_r", SHT_GNU_verneed, SHF_ALLOC) { - this->Header.sh_addralign = sizeof(typename ELFT::Word); + this->Header.sh_addralign = sizeof(uint32_t); } template -- 2.7.4