aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
diff options
context:
space:
mode:
authorSharonXSharon <xiaoranxu.nju@gmail.com>2025-06-03 10:12:36 -0700
committerGitHub <noreply@github.com>2025-06-03 10:12:36 -0700
commit79cc728b77018bb1d87f0c327f3013aac85ba9fa (patch)
treeeb2ef497922e1679740a8c64ee5c1567ad6d8b89 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
parent95ce58bc4a37cc5be4dbe374452f805092a44aaf (diff)
downloadllvm-79cc728b77018bb1d87f0c327f3013aac85ba9fa.zip
llvm-79cc728b77018bb1d87f0c327f3013aac85ba9fa.tar.gz
llvm-79cc728b77018bb1d87f0c327f3013aac85ba9fa.tar.bz2
[lld][macho] Strip .__uniq. and .llvm. hashes in -order_file (#140670)
``` /// Symbols can be appended with "(.__uniq.xxxx)?.llvm.yyyy" where "xxxx" and /// "yyyy" are numbers that could change between builds. We need to use the root /// symbol name before this suffix so these symbols can be matched with profiles /// which may have different suffixes. ``` Just like what we are doing in BP, https://github.com/llvm/llvm-project/blob/main/lld/MachO/BPSectionOrderer.cpp#L127 the patch removes the suffixes when parsing the order file and getting the symbol priority to have a better symbol match. --------- Co-authored-by: Sharon Xu <sharonxu@fb.com> Co-authored-by: Ellis Hoag <ellis.sparky.hoag@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions