[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>::Discarded(nullptr, nullptr,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits