[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)
Sean Perry via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 13:07:57 PST 2025
================
----------------
perry-ca wrote:
I'd like to get this as simple as possible. This is very similar to `pragma weak`. The addition of the pragma is to help with porting code over to clang rather than writing new code. We would like to encourage people to use `__attribuite__((visibility("default"))` instead of the pragma in C++ programs. Adding support for fully qualified names opens the door to supporting dependent names, overloads, etc. This pragma was only ever used by C programs so limiting it to simple names doesn't impose any restrictions on ported code.
https://github.com/llvm/llvm-project/pull/141671
More information about the cfe-commits
mailing list