[clang] Don't emit type tests for dllexport/import classes
authorArthur Eubanks <aeubanks@google.com>
Wed, 13 Jul 2022 22:51:15 +0000 (15:51 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 25 Apr 2023 21:00:57 +0000 (14:00 -0700)
commitf34ecb50e2c03e27b5785576545aab07b3b19a94
tree153320c1737958048bb7e46544951a45f8754cde
parent9cf1881f8f12a70c28432278a2878a6113c017c1
[clang] Don't emit type tests for dllexport/import classes

According to https://clang.llvm.org/docs/LTOVisibility.html, classes on
Windows with dllimport/export receive public LTO visibility and
therefore should not participate in WPD.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D129700
clang/lib/CodeGen/CGVTables.cpp
clang/test/CodeGenCXX/lto-visibility-inference.cpp