[LowerTypeTests] Emit cfi_jt aliases regardless of function export
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 27 Oct 2021 18:36:23 +0000 (11:36 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Wed, 27 Oct 2021 18:36:26 +0000 (11:36 -0700)
commit3ccd041af920125595a992becd0e1e4083ce562b
tree116d0c87439c70dd2f9a49a90e0c4d66f7ce398e
parentcb90e5356ac1594e95fed8e208d6e0e9b6a87db1
[LowerTypeTests] Emit cfi_jt aliases regardless of function export

A constant complaint we get is that the __typeid__ symbols in the CFI
jump tables causes confusing stack traces in applications. Emit the more
readable cfi_jt aliases regardless of function export (LTO vs Thin LTO).

Reviewed By: pcc, tejohnson

Differential Revision: https://reviews.llvm.org/D107934
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
llvm/test/LTO/X86/cfi_jt_aliases.ll [new file with mode: 0644]