[JITLink][COFF] Don't dead strip seh frame of exported function.
authorSunho Kim <ksunhokim123@gmail.com>
Tue, 26 Jul 2022 04:04:12 +0000 (13:04 +0900)
committerSunho Kim <ksunhokim123@gmail.com>
Tue, 26 Jul 2022 04:04:12 +0000 (13:04 +0900)
commitcd953e4ffcfe63ce9133ff7037a2c54aeb9b7421
treeebad6e856dc7b90fdebefc5e36492613de42e834
parent85c6629d85553a565fe38327d29d5952f7598f01
[JITLink][COFF] Don't dead strip seh frame of exported function.

Adds keep-alive edges to pdata section to prevent dead strip of block when its parent function is alive.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D129945
llvm/lib/ExecutionEngine/JITLink/COFF_x86_64.cpp
llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/COFF_pdata_no_strip.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/COFF_pdata_strip.s [new file with mode: 0644]