This diff fixes linkage and visibility of template parameter objects.
The associated GitHub issue: https://github.com/llvm/llvm-project/issues/51571#
Test plan:
1/ ninja check-all
2/ bootstrapped Clang passes tests
Differential D145859
[Clang][CodeGen] Fix linkage and visibility of template parameter objects alexander-shaposhnikov on Mar 11 2023, 9:38 PM. Authored by
Details This diff fixes linkage and visibility of template parameter objects. Test plan:
Diff Detail
Event TimelineComment Actions Looks good. If you want to look at the visibility side of this separately I think that's fine (I only called it out here because we often consider them at the same time).
|
I think we should be taking the visibility into account in some way too. For example, if the type of the template parameter object involves a type with hidden visibility, then the template parameter object itself should have hidden visibility.
Can we call setGVProperties(GV, TPO); here? It looks like that would do the right thing for visibility.