[lld] r261712 - ELF: Remove InputSectionBase::getAlign and instead add Align member.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 24 10:04:09 PST 2016
On Wed, Feb 24, 2016 at 6:11 AM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> > + // The ELF spec states that a value of 0 means the section has
> > + // no alignment constraits.
> > + if (Header)
> > + Align = std::max<uintX_t>(Header->sh_addralign, 1);
> > }
>
> When is Header null?
>
It is again for Discarded section. It is defined as this.
template <class ELFT>
InputSectionBase<ELFT>
InputSectionBase<ELFT>::Discarded(nullptr, nullptr,
InputSectionBase<ELFT>::Regular);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160224/57bc162a/attachment.html>
More information about the llvm-commits
mailing list