aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/valarray.cpp
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2025-05-18 15:47:05 +0200
committerGitHub <noreply@github.com>2025-05-18 15:47:05 +0200
commitc861fe8a71e64f3d2108c58147e7375cd9314521 (patch)
treedc3ea9bd57413493d867724a1679d1b459a14b63 /libcxx/src/valarray.cpp
parentad3136689090f79b52afcb5a95ec87e893006877 (diff)
downloadllvm-c861fe8a71e64f3d2108c58147e7375cd9314521.zip
llvm-c861fe8a71e64f3d2108c58147e7375cd9314521.tar.gz
llvm-c861fe8a71e64f3d2108c58147e7375cd9314521.tar.bz2
[libc++] Introduce ABI sensitive areas to avoid requiring _LIBCPP_HIDE_FROM_ABI everywhere (#131156)
This patch introduces `_LIBCPP_{BEGIN,END}_EXPLICIT_ABI_ANNOTATIONS`, which allow us to have implicit annotations for most functions, and just where it's not "hide_from_abi everything" we add explicit annotations. This allows us to drop the `_LIBCPP_HIDE_FROM_ABI` macro from most functions in libc++.
Diffstat (limited to 'libcxx/src/valarray.cpp')
-rw-r--r--libcxx/src/valarray.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/valarray.cpp b/libcxx/src/valarray.cpp
index 6ef1f1c..8715650 100644
--- a/libcxx/src/valarray.cpp
+++ b/libcxx/src/valarray.cpp
@@ -9,6 +9,7 @@
#include <valarray>
_LIBCPP_BEGIN_NAMESPACE_STD
+_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
// These two symbols are part of the v1 ABI but not part of the >=v2 ABI.
#if _LIBCPP_ABI_VERSION == 1
@@ -46,4 +47,5 @@ void gslice::__init(size_t __start) {
}
}
+_LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
_LIBCPP_END_NAMESPACE_STD