[PATCH] D33852: Enable __declspec(selectany) on linux

Davide Italiano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 2 15:11:41 PDT 2017


davide added a comment.

I think lowering `__declspec(selectany)` to a `comdat` for GVs on ELF platform is actually reasonable.
I don't know what happens on Mach-O (as far as I can tell they don't have a real notion of COMDAT, they use coalesced symbols, but I'm not an expert of the format so you might want to ask somebody who's familiar with it). I think Reid should sign-off this change anyway.


https://reviews.llvm.org/D33852





More information about the cfe-commits mailing list