[PATCH] D38361: [ELF] Stop setting output section size early

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 11:42:03 PST 2017


James Henderson via Phabricator <reviews at reviews.llvm.org> writes:

> +  // Calculate the section offsets and size pre-compression.
> +  for (BaseCommand * Cmd : SectionCommands)
> +    if (auto *ISD = dyn_cast<InputSectionDescription>(Cmd))
> +      for (InputSection *IS : ISD->Sections) {
> +         IS->OutSecOff = alignTo(Size, IS->Alignment);
> +         this->Size = IS->OutSecOff + IS->getSize();
> +      }

This area is not clang formatted.

Cheers,
Rafael


More information about the llvm-commits mailing list