ELF: Remove InputSectionBase::getAlign and instead add Align member.
authorRui Ueyama <ruiu@google.com>
Wed, 24 Feb 2016 00:38:18 +0000 (00:38 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 24 Feb 2016 00:38:18 +0000 (00:38 +0000)
commit5ac589171da63e78b438781542f28f3ac68987b2
treef16a2a6672b2b2fb1afdc61c27e8bd98d573c667
parent8fc070d64d005639856bdb8bca76d1dcb428f8ae
ELF: Remove InputSectionBase::getAlign and instead add Align member.

This is a preparation for ICF. If we merge two sections, we want to
align the merged section at the largest alignment requirement.
That means we want to update the alignment value, which was
impossible before this patch because Header is a const value.

llvm-svn: 261712
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/OutputSections.cpp