diff options
author | Ben Dunbobbin <Ben.Dunbobbin@sony.com> | 2020-11-02 15:11:56 +0000 |
---|---|---|
committer | Ben Dunbobbin <Ben.Dunbobbin@sony.com> | 2020-11-02 17:08:23 +0000 |
commit | 415f7ee8836944942d8beb70e982e95a312866a7 (patch) | |
tree | f20d53ffabdf0fa925cfb6a8cd9f053dd6e8f467 /clang/lib/Basic/Module.cpp | |
parent | d1e02ea47a6ad0e90a2e94eef280592e6488bb9e (diff) | |
download | llvm-415f7ee8836944942d8beb70e982e95a312866a7.zip llvm-415f7ee8836944942d8beb70e982e95a312866a7.tar.gz llvm-415f7ee8836944942d8beb70e982e95a312866a7.tar.bz2 |
[Clang] Add the ability to map DLL storage class to visibility
For PlayStation we offer source code compatibility with
Microsoft's dllimport/export annotations; however, our file
format is based on ELF.
To support this we translate from DLL storage class to ELF
visibility at the end of codegen in Clang.
Other toolchains have used similar strategies (e.g. see the
documentation for this ARM toolchain:
https://developer.arm.com/documentation/dui0530/i/migrating-from-rvct-v3-1-to-rvct-v4-0/changes-to-symbol-visibility-between-rvct-v3-1-and-rvct-v4-0)
This patch adds the ability to perform this translation. Options
are provided to support customizing the mapping behaviour.
Differential Revision: https://reviews.llvm.org/D89970
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions