r328040 - Set dso_local on string literals.

Rafael Avila de Espindola via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 20 17:01:24 PDT 2018


Joerg Sonnenberger via cfe-commits <cfe-commits at lists.llvm.org> writes:

> On Tue, Mar 20, 2018 at 08:42:55PM -0000, Rafael Espindola via cfe-commits wrote:
>> Author: rafael
>> Date: Tue Mar 20 13:42:55 2018
>> New Revision: 328040
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=328040&view=rev
>> Log:
>> Set dso_local on string literals.
>
> I wonder if unnamed_addr shouldn't imply that in general?

I don't think so. For example, a language where functions cannot be
compared for equality could mark all functions unnamed_addr. It could
still support interposition, which requires that they are not dso_local.

Cheers,
Rafael


More information about the cfe-commits mailing list