Skip to content

Commit c033ea9

Browse files
committed
Add _LIBCPP_HIDE_FROM_ABI.
1 parent 8fa650a commit c033ea9

File tree

1 file changed

+8
-8
lines changed
  • libcxx/include

1 file changed

+8
-8
lines changed

libcxx/include/ios

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,10 @@ template <class _Traits>
526526
// Attribute 'packed' is used to keep the layout compatible with the previous
527527
// definition of the '__fill_' and '_set_' pair in basic_ios on AIX & z/OS.
528528
struct _LIBCPP_PACKED _OptionalFill {
529-
_OptionalFill() : __set_(false) { }
530-
_OptionalFill& operator=(typename _Traits::int_type __x) { __set_ = true; __fill_val_ = __x; return *this; }
531-
bool __is_set() const { return __set_; }
532-
typename _Traits::int_type __fill() const { return __fill_val_; }
529+
_LIBCPP_HIDE_FROM_ABI _OptionalFill() : __set_(false) { }
530+
_LIBCPP_HIDE_FROM_ABI _OptionalFill& operator=(typename _Traits::int_type __x) { __set_ = true; __fill_val_ = __x; return *this; }
531+
_LIBCPP_HIDE_FROM_ABI bool __is_set() const { return __set_; }
532+
_LIBCPP_HIDE_FROM_ABI typename _Traits::int_type __fill() const { return __fill_val_; }
533533

534534
private:
535535
typename _Traits::int_type __fill_val_;
@@ -538,10 +538,10 @@ private:
538538

539539
template <class _Traits>
540540
struct _LIBCPP_PACKED _SentinelValueFill {
541-
_SentinelValueFill() : __fill_val_(_Traits::eof()) { }
542-
_SentinelValueFill& operator=(typename _Traits::int_type __x) { __fill_val_ = __x; return *this; }
543-
bool __is_set() const { return __fill_val_ != _Traits::eof(); }
544-
typename _Traits::int_type __fill() const { return __fill_val_; }
541+
_LIBCPP_HIDE_FROM_ABI _SentinelValueFill() : __fill_val_(_Traits::eof()) { }
542+
_LIBCPP_HIDE_FROM_ABI _SentinelValueFill& operator=(typename _Traits::int_type __x) { __fill_val_ = __x; return *this; }
543+
_LIBCPP_HIDE_FROM_ABI bool __is_set() const { return __fill_val_ != _Traits::eof(); }
544+
_LIBCPP_HIDE_FROM_ABI typename _Traits::int_type __fill() const { return __fill_val_; }
545545

546546
private:
547547
typename _Traits::int_type __fill_val_;

0 commit comments

Comments
 (0)