[lld] [lld] Merge equivalent symbols found during ICF (PR #134342)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 22:47:46 PDT 2025
================
@@ -535,14 +558,28 @@ template <class ELFT> void ICF<ELFT>::run() {
auto print = [&ctx = ctx]() -> ELFSyncStream {
return {ctx, ctx.arg.printIcfSections ? DiagLevel::Msg : DiagLevel::None};
};
+
+ EquivalenceClasses<Symbol *> symbolEquivalence;
// Merge sections by the equivalence class.
+ // Merge symbols identified as equivalent during ICF
----------------
MaskRay wrote:
In comments, full sentences end with a full stop.
https://github.com/llvm/llvm-project/pull/134342
More information about the llvm-commits
mailing list