[PATCH] D36351: [lld][ELF] Add profile guided section layout

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 11:20:26 PST 2018


Michael Spencer via Phabricator <reviews at reviews.llvm.org> writes:


> +    if (OutputSection *Sec = findSection(".text"))
> +      Sec->sort([&](InputSectionBase *S) { return OrderMap.lookup(S); });

Why is this done just for .text? We should be able to sort any section,
no?

Cheers,
Rafael


More information about the llvm-commits mailing list