[PATCH] D15433: [libcxx] Remove inline/visibility attributes from exported template methods in valarray.

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 14:13:11 PST 2015


eugenis created this revision.
eugenis added a reviewer: EricWF.
eugenis added a subscriber: cfe-commits.
eugenis set the repository for this revision to rL LLVM.

This does not affect the libc++ export list now.
It is required for internal_linkage switch to not affect the libc++ export list.
This patch is on top of D15432.

Repository:
  rL LLVM

http://reviews.llvm.org/D15433

Files:
  include/valarray

Index: include/valarray
===================================================================
--- include/valarray
+++ include/valarray
@@ -802,7 +802,6 @@
     // construct/destroy:
     _LIBCPP_INLINE_VISIBILITY
     valarray() : __begin_(0), __end_(0) {}
-    _LIBCPP_INLINE_VISIBILITY
     explicit valarray(size_t __n);
     _LIBCPP_INLINE_VISIBILITY
     valarray(const value_type& __x, size_t __n);
@@ -820,7 +819,6 @@
     valarray(const mask_array<value_type>& __ma);
     valarray(const indirect_array<value_type>& __ia);
 
-    _LIBCPP_INLINE_VISIBILITY
     ~valarray();
 
     // assignment:
@@ -1092,16 +1090,14 @@
 
 
 template <class _Tp>
-inline
 valarray<_Tp>::valarray(size_t __n)
     : __begin_(0),
       __end_(0)
 {
     resize(__n);
 }
 
 template <class _Tp>
-inline
 valarray<_Tp>::~valarray()
 {
     resize(0);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15433.42463.patch
Type: text/x-patch
Size: 838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151210/39dca40c/attachment.bin>


More information about the cfe-commits mailing list