[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 3 13:29:45 PST 2024


zygoloid wrote:

To be clear: I didn't mean to suggest that `-fvisibility-global-new-delete=force-hidden` itself would be deprecated. I think supporting it would have low cost and it may be exactly what is desired in some cases, and the previous spelling [has quite a few uses](https://www.google.com/search?q=%22-fvisibility-global-new-delete-hidden%22). Instead, what I'd suggest is that we add the more-general mechanism of `-fvisibility-global-new-delete=<value>` and make the existing `-fvisibility-global-new-delete-hidden` equivalent to `-fvisibility-global-new-delete=force-hidden`, except that the former spelling is deprecated and the latter spelling is not.

https://github.com/llvm/llvm-project/pull/75364


More information about the cfe-commits mailing list