[lld] [lld][MachO] Add N_COLD_FUNC support (PR #183909)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 09:47:46 PST 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; }
----------------
ellishg wrote:
I see. Looking forward to the ELF PR!
https://github.com/llvm/llvm-project/pull/183909
More information about the llvm-commits
mailing list