[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:50:04 PST 2016
This has been addressed in r261761.
On Wed, Feb 24, 2016 at 10:04 AM, Rui Ueyama <ruiu at google.com> wrote:
> 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/ed686b96/attachment.html>
More information about the llvm-commits
mailing list