[lld] [lld][macho] Fold functions with the same Dwarf FDE (PR #213778)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 10:13:42 PDT 2026


================
@@ -1563,6 +1563,19 @@ void ObjFile::registerEhFrames(Section &ehFrameSection) {
     fdes[isec] = {funcLength, cie.personalitySymbol, lsdaIsec};
     funcSym->originalUnwindEntry = isec;
     ehRelocator.commit();
+    if (config->icfLevel != ICFLevel::none) {
----------------
ellishg wrote:

> I think we might be able to get rid of the bAlloc() usage altogether here.
What do you think of this alternative impl? https://github.com/llvm/llvm-project/pull/216895

I agree, it would be nice to not need `bAlloc()`. I'll take a look and thanks for fixing!

https://github.com/llvm/llvm-project/pull/213778


More information about the llvm-commits mailing list