Add visibility attributes and inline to some vector methods.
Adding filesystem to the dylib caused some vector symbols to leak
into the set of exported symbols. This patch hides those symbols.
llvm-svn: 356502
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 33244990adff3523a6bcf11e587d76978003f9c6
diff --git a/include/vector b/include/vector
index e560b08..82bf6e0 100644
--- a/include/vector
+++ b/include/vector
@@ -835,12 +835,17 @@
}
#ifndef _LIBCPP_CXX03_LANG
- template <class _Up> void __push_back_slow_path(_Up&& __x);
+ template <class _Up>
+ _LIBCPP_INLINE_VISIBILITY
+ inline void __push_back_slow_path(_Up&& __x);
template <class... _Args>
- void __emplace_back_slow_path(_Args&&... __args);
+ _LIBCPP_INLINE_VISIBILITY
+ inline void __emplace_back_slow_path(_Args&&... __args);
#else
- template <class _Up> void __push_back_slow_path(_Up& __x);
+ template <class _Up>
+ _LIBCPP_INLINE_VISIBILITY
+ inline void __push_back_slow_path(_Up& __x);
#endif
// The following functions are no-ops outside of AddressSanitizer mode.