0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-18 14:16:44 +00:00
Andrew Savonichev a8fe21f3f5
[clang] Handle instantiated members to determine visibility ()
As reported in issue , visibility of instantiated member
functions used to be ignored when calculating visibility of a
specialization.

This patch modifies `getLVForClassMember` to look up for a source
template for an instantiated member, and changes `mergeTemplateLV` to
apply it.

A similar issue was reported in , but it seems that `extern`
declaration with visibility prevents the function from being emitted as
hidden. This behavior seems correct, even though GCC emits it as with
default visibility instead.

Both tests from  and  are added as LIT tests `test72` and
`test73` respectively.
2025-04-18 20:29:19 +09:00
..