diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-05-18 15:47:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-18 15:47:05 +0200 |
commit | c861fe8a71e64f3d2108c58147e7375cd9314521 (patch) | |
tree | dc3ea9bd57413493d867724a1679d1b459a14b63 /libcxx/src/filesystem/operations.cpp | |
parent | ad3136689090f79b52afcb5a95ec87e893006877 (diff) | |
download | llvm-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/filesystem/operations.cpp')
-rw-r--r-- | libcxx/src/filesystem/operations.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp index b71f94a..56fdf7e 100644 --- a/libcxx/src/filesystem/operations.cpp +++ b/libcxx/src/filesystem/operations.cpp @@ -76,6 +76,7 @@ #endif _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM +_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS using detail::capture_errno; using detail::ErrorHandler; @@ -1084,4 +1085,5 @@ path __weakly_canonical(const path& p, error_code* ec) { return result.lexically_normal(); } +_LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS _LIBCPP_END_NAMESPACE_FILESYSTEM |