HomePhabricator

[windows-itanium] handle dllimport/export code paths separately and share with…

Authored by Ben Dunbobbin <Ben.Dunbobbin@sony.com> on Nov 30 2020, 3:50 AM.

Description

[windows-itanium] handle dllimport/export code paths separately and share with PS4

Similar to Windows Itanium, PS4 is also an Itanium C++ ABI variant
which shares the goal of semantic compatibility with Microsoft C++
code that uses dllimport/export.

This change introduces a new function to determine from the triple
if an environment aims for compatibility with MS C++ code w.r.t to
these attributes and guards the relevant code paths using that
function.

Differential Revision: https://reviews.llvm.org/D90299