]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
AutoFDO: Use filenames to resolve clashing symbol names
authorDhruv Chawla <dhruvc@nvidia.com>
Thu, 16 Oct 2025 05:17:19 +0000 (22:17 -0700)
committerDhruv Chawla <dhruvc@nvidia.com>
Tue, 23 Dec 2025 05:22:45 +0000 (10:52 +0530)
commit84058c3cc805f7238f25f244478ec746ddf6d32d
tree0da1e06559e9700431d6b4366211675f9538d704
parentbbac517a969ee7d22d418898dc4bece719165d35
AutoFDO: Use filenames to resolve clashing symbol names

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* auto-profile.cc (string_table::~string_table): Update to free
original_names_map_.
(string_table::original_names_map_): New member.
(string_table::clashing_names_map_): Likewise.
(string_table::get_original_name): New function.
(string_table::read): Figure out clashes while reading.
(autofdo_source_profile::offline_external_functions): Call
get_original_name.
gcc/auto-profile.cc