aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Serialization/ModuleCacheTest.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2025-07-30 14:04:11 -0700
committerGitHub <noreply@github.com>2025-07-30 14:04:11 -0700
commitff38981a5817f06afad2c7e263e3bf8486f35da9 (patch)
tree0d05b8d73687f185389b38fa4a7598cfbe9ef205 /clang/unittests/Serialization/ModuleCacheTest.cpp
parent62187a60e61017c3a453bb138d27f9bdda27879d (diff)
downloadllvm-ff38981a5817f06afad2c7e263e3bf8486f35da9.zip
llvm-ff38981a5817f06afad2c7e263e3bf8486f35da9.tar.gz
llvm-ff38981a5817f06afad2c7e263e3bf8486f35da9.tar.bz2
LTO: Redesign the CFI !aliases metadata.
With the current aliases metadata we lose information about which groups of aliases survive symbol resolution. This causes various problems such as #150075 where symbol resolution breaks the link between alias groups. In this redesign of the aliases metadata, we stop representing the individual aliases in !aliases. Instead, the individual aliases are represented in !cfi.functions in the same way as functions, and the alias groups (i.e. groups of symbols with the same address) are stored in !aliases. At symbol resolution time, we filter out all non-prevailing members of !aliases; the resulting set is used by LowerTypeTests to recreate the aliases. With this change it is now possible for a jump table entry to refer to an alias in one of the ThinLTO object files (e.g. if a function is non-prevailing but its alias is prevailing), so instead of deleting them, rename them with the ".cfi" suffix. Fixes #150070. Fixes #150075. Reviewers: teresajohnson, vitalybuka Reviewed By: vitalybuka Pull Request: https://github.com/llvm/llvm-project/pull/150690
Diffstat (limited to 'clang/unittests/Serialization/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions