[PATCH] D57190: [MC] Teach the MachO object writer about N_FUNC_COLD
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 24 18:49:04 PST 2019
vsk added a comment.
In D57190#1370535 <https://reviews.llvm.org/D57190#1370535>, @pcc wrote:
> Interesting, what's the advantage of this over doing something like creating a `__cold` section in the `__TEXT` segment?
A .cold directive allows us to perform reordering in projects/build systems we don't control, which may have custom linker scripts, or other tooling which depends on text remaining in the __text section.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57190/new/
https://reviews.llvm.org/D57190
More information about the llvm-commits
mailing list