[Windows Itanium][PS4] handle dllimport/export w.r.t vtables/rtti
authorBen Dunbobbin <Ben.Dunbobbin@sony.com>
Tue, 13 Apr 2021 01:18:12 +0000 (02:18 +0100)
committerBen Dunbobbin <Ben.Dunbobbin@sony.com>
Tue, 13 Apr 2021 10:41:10 +0000 (11:41 +0100)
commiteae2d4b8520c768291dcff2169b78486af324d17
tree4424870bc70c12b5c73194135c64257656737042
parentaab81c2f40d2098f9014473a1e7c8fb7b074360b
[Windows Itanium][PS4] handle dllimport/export w.r.t vtables/rtti

The existing Windows Itanium patches for dllimport/export
behaviour w.r.t vtables/rtti can't be adopted for PS4 due to
backwards compatibility reasons (see comments on
https://reviews.llvm.org/D90299).

This commit adds our PS4 scheme for this to Clang.

Differential Revision: https://reviews.llvm.org/D93203
clang/include/clang/Basic/TargetInfo.h
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/ps4-dllstorage-vtable-rtti.cpp [new file with mode: 0644]