[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:07:37 PST 2018
Michael Spencer via Phabricator <reviews at reviews.llvm.org> writes:
> + // Profile data.
> + if (Name == ".note.llvm.cgprofile") {
> + CGProfile = check(
> + this->getObj().template getSectionContentsAsArray<Elf_CGProfile>(&Sec));
> + return &InputSection::Discarded;
> + }
For when it is time to use a profile section:
Do not use section names for new sections, introduce a new type.
Cheers,
Rafael
More information about the llvm-commits
mailing list