[PATCH] D133107: [COFF] Don't generate -exclude-symbols for dllexported symbols
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 3 22:28:57 PDT 2022
MaskRay added a comment.
In D133107#3766175 <https://reviews.llvm.org/D133107#3766175>, @mstorsjo wrote:
> In D133107#3765989 <https://reviews.llvm.org/D133107#3765989>, @MaskRay wrote:
>
>> Yes. I think this is better.
>>
>> Sent D133180 <https://reviews.llvm.org/D133180> to suppress hidden for dllexport as we do for dllimport.
>
> Thanks. What do you think about this patch then - I think it still might be best to do this change? E.g. if other frontends than clang generate such IR - even if it is a bit tautological.
>
>> `__attribute__((visibility("hidden"))) __declspec(dllexport)` should probably lead to an error.
>
> Should, but doesn't yet - how hard do you think it'd be to add checking for that?
Not too difficult:) I have read a bit the visibility code. Created D133266 <https://reviews.llvm.org/D133266> to reject the construct in Clang and D133267 <https://reviews.llvm.org/D133267> to reject `hidden dllexport` IR (note that we already reject `hidden dllimport` IR).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133107/new/
https://reviews.llvm.org/D133107
More information about the llvm-commits
mailing list