[lld] r268133 - Use simpler types. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 16:20:30 PDT 2016


Author: rafael
Date: Fri Apr 29 18:20:30 2016
New Revision: 268133

URL: http://llvm.org/viewvc/llvm-project?rev=268133&view=rev
Log:
Use simpler types. NFC.

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=268133&r1=268132&r2=268133&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Fri Apr 29 18:20:30 2016
@@ -1522,7 +1522,7 @@ SymbolTableSection<ELFT>::getOutputSecti
 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 VersionTableS
 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>




More information about the llvm-commits mailing list