[PATCH] D133267: [Verifier] Reject dllexport with non-default visibility
ben via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 06:33:25 PDT 2022
bd1976llvm added a comment.
Hi! Sorry for not raising this issue prior to commit. The dllimport restriction seems correct to us. However, in PlayStation we are using dllexportclass=dllexport visibility=protected GlobalValues in LLVM IR. The protected visibility indicates that the symbol cannot be preempted and could be exported and dllexport indicates that it should be exported. This allows for implementing export control from C/C++ source code. This change has made this usage illegal. It doesn't makes sense semantically to restrict dllexport to visibility=default in LLVM IR, the restriction should be to visibility != hidden as hidden symbols cannot be exported by ELF linkers. Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133267/new/
https://reviews.llvm.org/D133267
More information about the llvm-commits
mailing list