[cfe-dev] Inlining dllimport functions

Hamza Sood via cfe-dev cfe-dev at lists.llvm.org
Fri Sep 14 13:15:18 PDT 2018


I was thinking more in the context of changing Clang.

Wouldn’t exporting some of those internal symbols get in the way of ABI stability? libc++ goes to great lengths to keep stuff like that out of the dynamic libraries.

> On 14 Sep 2018, at 19:34, Reid Kleckner wrote:
> 
>> On Fri, Sep 14, 2018, 6:51 AM Hamza Sood <hamza_sood at me.com> wrote:
>> Would it break ABI compatibility if we let Clang inline things like this? What about putting it behind a Clang-specific optimisation flag?
> 
> I'm not sure I understand this ABI compatibility concern.
> 
> I was suggesting that libc++ should export all of the class methods it needs, so that we can always emit these dllimport methods as available_externally definitions. This would be much simpler than adding new flags.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180914/ae6ede84/attachment.html>


More information about the cfe-dev mailing list