Use simpler types. NFC.

llvm-svn: 268133
This commit is contained in:
Rafael Espindola 2016-04-29 23:20:30 +00:00
parent 76945b2f44
commit aae59561d6
1 changed files with 2 additions and 2 deletions

View File

@ -1522,7 +1522,7 @@ SymbolTableSection<ELFT>::getOutputSection(SymbolBody *Sym) {
template <class ELFT>
VersionTableSection<ELFT>::VersionTableSection()
: OutputSectionBase<ELFT>(".gnu.version", SHT_GNU_versym, SHF_ALLOC) {
this->Header.sh_addralign = sizeof(typename ELFT::Half);
this->Header.sh_addralign = sizeof(uint16_t);
}
template <class ELFT> void VersionTableSection<ELFT>::finalize() {
@ -1547,7 +1547,7 @@ template <class ELFT> void VersionTableSection<ELFT>::writeTo(uint8_t *Buf) {
template <class ELFT>
VersionNeedSection<ELFT>::VersionNeedSection()
: OutputSectionBase<ELFT>(".gnu.version_r", SHT_GNU_verneed, SHF_ALLOC) {
this->Header.sh_addralign = sizeof(typename ELFT::Word);
this->Header.sh_addralign = sizeof(uint32_t);
}
template <class ELFT>