rsmith added a comment.

In https://reviews.llvm.org/D53787#1279913, @phosek wrote:

> In https://reviews.llvm.org/D53787#1279899, @rsmith wrote:
>
> > Replacing the global new and delete is supposed to be a whole-program 
> > operation (you only get one global allocator). Otherwise you couldn't 
> > allocate memory in one DSO and deallocate it in another. (And nor could 
> > inline functions etc.)
> >
> > If you really want to do this weird thing, and you understand what you're 
> > getting yourself into, I don't see a problem with having a dedicated flag 
> > for it, but don't break all existing users of -fvisibility=.
>
>
> That sounds reasonable, do you have any suggestion for the name of such flag?


`-fglobal-new-delete-visibility=` is the first thing that springs to mind, but 
maybe there's something better?


Repository:
  rC Clang

https://reviews.llvm.org/D53787



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to