[libc++] Add missing _LIBCPP_HIDE_FROM_ABI
authorLouis Dionne <ldionne.2@gmail.com>
Tue, 7 Feb 2023 01:33:20 +0000 (17:33 -0800)
committerLouis Dionne <ldionne.2@gmail.com>
Tue, 7 Feb 2023 05:01:32 +0000 (21:01 -0800)
Differential Revision: https://reviews.llvm.org/D143451

libcxx/include/string

index 9f5838d..98d6c14 100644 (file)
@@ -4445,11 +4445,11 @@ const typename basic_string<_CharT, _Traits, _Allocator>::size_type
                basic_string<_CharT, _Traits, _Allocator>::npos;
 
 template <class _CharT, class _Allocator>
-struct __string_hash : public __unary_function<basic_string<_CharT, char_traits<_CharT>, _Allocator>, size_t>
-{
-    size_t
-    operator()(const basic_string<_CharT, char_traits<_CharT>, _Allocator>& __val) const _NOEXCEPT
-    { return std::__do_string_hash(__val.data(), __val.data() + __val.size()); }
+struct __string_hash : public __unary_function<basic_string<_CharT, char_traits<_CharT>, _Allocator>, size_t> {
+    _LIBCPP_HIDE_FROM_ABI size_t
+    operator()(const basic_string<_CharT, char_traits<_CharT>, _Allocator>& __val) const _NOEXCEPT {
+        return std::__do_string_hash(__val.data(), __val.data() + __val.size());
+    }
 };
 
 template <class _Allocator>