aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-09-05 10:53:41 -0700
committerFangrui Song <i@maskray.me>2022-09-05 10:53:41 -0700
commit2417618d5ca4b151908df09d8e3a00a49f029222 (patch)
treea34bc0871c5a22c0068133d44362cdc79056fb41 /llvm/lib/Object/COFFObjectFile.cpp
parent91d8324366f405e871aa8174ab61fc66912964dd (diff)
downloadllvm-2417618d5ca4b151908df09d8e3a00a49f029222.zip
llvm-2417618d5ca4b151908df09d8e3a00a49f029222.tar.gz
llvm-2417618d5ca4b151908df09d8e3a00a49f029222.tar.bz2
[Verifier] Reject dllexport with non-default visibility
Add a visibility check for dllimport and dllexport. Note: dllimport with a non-default visibility (implicit dso_local) is already rejected, but with a less clear dso_local error. The MC level visibility `MCSA_Exported` (D123951) is mapped from IR level default visibility when dllexport is specified. The D123951 error is now very difficult to trigger (needs to disable the IR verifier). Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D133267
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions