[lld] [lld][macho] Strip .__uniq. and .llvm. hashes in -order_file (PR #140670)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 11:13:59 PDT 2025
================
@@ -245,12 +245,18 @@ DenseMap<const InputSection *, int> CallGraphSort::run() {
return orderMap;
}
+StringRef macho::PriorityBuilder::getRootSymbol(StringRef Name) {
+ auto [P0, S0] = Name.rsplit(".llvm.");
+ auto [P1, S1] = P0.rsplit(".__uniq.");
+ return P1;
+}
+
----------------
SharonXSharon wrote:
@MaskRay @ellishg I created a new header lld/Common/Utils.h
please review again, thanks!
https://github.com/llvm/llvm-project/pull/140670
More information about the llvm-commits
mailing list