[libcxx-commits] [libcxx] [libcxxabi] [libc++] Replace uses of _LIBCPP_WEAK with [[gnu::weak]] (PR #171798)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 7 08:19:21 PST 2026
================
@@ -66,8 +66,7 @@
#if defined(_LIBCPP_OBJECT_FORMAT_MACHO)
# define _LIBCPP_CAN_DETECT_OVERRIDDEN_FUNCTION 1
-# define _LIBCPP_OVERRIDABLE_FUNCTION(type, name, arglist) \
- __attribute__((__section__("__TEXT,__lcxx_override,regular,pure_instructions"))) _LIBCPP_WEAK type name arglist
+# define OVERRIDABLE_FUNCTION [[gnu::weak, gnu::section("__TEXT,__lcxx_override,regular,pure_instructions")]]
----------------
ldionne wrote:
Could you please extract this refactoring to a separate patch? This is going to cause downstream conflicts for us.
https://github.com/llvm/llvm-project/pull/171798
More information about the libcxx-commits
mailing list