[JITLink][COFF] Don't dead strip COMDAT associative symbol.
authorSunho Kim <ksunhokim123@gmail.com>
Mon, 25 Jul 2022 13:59:19 +0000 (22:59 +0900)
committerSunho Kim <ksunhokim123@gmail.com>
Mon, 25 Jul 2022 13:59:19 +0000 (22:59 +0900)
commitb4878493dc3e1a2ecce45a917229f0d51947425c
tree38c1d7cb100aec9619e52f63e452aef8e3abcdb5
parent629903c8a4440095ecb98c7095f029783255db11
[JITLink][COFF] Don't dead strip COMDAT associative symbol.

This prevents the dead strip of associative comdat section when parent section is alive.

Reviewed By: sgraenitz

Differential Revision: https://reviews.llvm.org/D129720
llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp
llvm/test/ExecutionEngine/JITLink/X86/COFF_comdat_associative_dead_strip.test [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/COFF_comdat_associative_no_dead_strip.test [new file with mode: 0644]