[lld] r248393 - [elf2] Pass BSSSec to the relocation handling code differently. Don't store it in the symbol.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 10:04:11 PDT 2015


> +  // The only type in OutputSections is currently OutputSection.
> +  for (OutputSectionBase<ELFT::Is64Bits> *OSB : OutputSections)
> +    static_cast<OutputSection<ELFT> *>(OSB)->setBssSec(BSSSec);

There is already a loop over the output section in the end of this
function, can't you use it?

Cheers,
Rafael


More information about the llvm-commits mailing list