[lld] [lld][MachO] Add N_COLD_FUNC support (PR #183909)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 20:00:17 PDT 2026
================
@@ -32,6 +32,9 @@ struct BPOrdererELF : lld::BPOrderer<BPOrdererELF> {
static bool isCodeSection(const Section &sec) {
return sec.flags & ELF::SHF_EXECINSTR;
}
+ // ELF handles cold functions via separate output sections (.text.unlikely,
+ // .text.split), so no cold splitting is needed within BP.
+ static bool isColdSection(const Section &sec) { return false; }
----------------
alx32 wrote:
I'm OK with this as long was we're sure we will follow up with making BP + Cold work appropriately.
https://github.com/llvm/llvm-project/pull/183909
More information about the llvm-commits
mailing list