Revert "[libc++] Replace uses of _LIBCPP_ALWAYS_INLINE by _LIBCPP_INLINE_VISIBILITY"
This reverts commit r336369. The commit had two problems:
1. __pbump was marked as _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY instead of
_LIBCPP_INLINE_VISIBILITY, which lead to two symbols being added in the
dylib and the check-cxx-abilist failing.
2. The LLDB tests started failing because they undefine
`_LIBCPP_INLINE_VISIBILITY`. I need to figure out why they do that and
fix the tests before we can go forward with this change.
llvm-svn: 336382
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 195a499d638db5157a64c9c816b76154096ecd52
diff --git a/include/ios b/include/ios
index 040b2d4..6e32d0f 100644
--- a/include/ios
+++ b/include/ios
@@ -337,9 +337,9 @@
}
void init(void* __sb);
- _LIBCPP_INLINE_VISIBILITY void* rdbuf() const {return __rdbuf_;}
+ _LIBCPP_ALWAYS_INLINE void* rdbuf() const {return __rdbuf_;}
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
void rdbuf(void* __sb)
{
__rdbuf_ = __sb;
@@ -351,7 +351,7 @@
void move(ios_base&);
void swap(ios_base&) _NOEXCEPT;
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
void set_rdbuf(void* __sb)
{
__rdbuf_ = __sb;
@@ -599,26 +599,26 @@
// we give it internal linkage.
#if defined(_LIBCPP_CXX03_LANG)
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
operator __cxx03_bool::__bool_type() const {
return !fail() ? &__cxx03_bool::__true_value : nullptr;
}
#else
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
_LIBCPP_EXPLICIT operator bool() const {return !fail();}
#endif
- _LIBCPP_INLINE_VISIBILITY bool operator!() const {return fail();}
- _LIBCPP_INLINE_VISIBILITY iostate rdstate() const {return ios_base::rdstate();}
- _LIBCPP_INLINE_VISIBILITY void clear(iostate __state = goodbit) {ios_base::clear(__state);}
- _LIBCPP_INLINE_VISIBILITY void setstate(iostate __state) {ios_base::setstate(__state);}
- _LIBCPP_INLINE_VISIBILITY bool good() const {return ios_base::good();}
- _LIBCPP_INLINE_VISIBILITY bool eof() const {return ios_base::eof();}
- _LIBCPP_INLINE_VISIBILITY bool fail() const {return ios_base::fail();}
- _LIBCPP_INLINE_VISIBILITY bool bad() const {return ios_base::bad();}
+ _LIBCPP_ALWAYS_INLINE bool operator!() const {return fail();}
+ _LIBCPP_ALWAYS_INLINE iostate rdstate() const {return ios_base::rdstate();}
+ _LIBCPP_ALWAYS_INLINE void clear(iostate __state = goodbit) {ios_base::clear(__state);}
+ _LIBCPP_ALWAYS_INLINE void setstate(iostate __state) {ios_base::setstate(__state);}
+ _LIBCPP_ALWAYS_INLINE bool good() const {return ios_base::good();}
+ _LIBCPP_ALWAYS_INLINE bool eof() const {return ios_base::eof();}
+ _LIBCPP_ALWAYS_INLINE bool fail() const {return ios_base::fail();}
+ _LIBCPP_ALWAYS_INLINE bool bad() const {return ios_base::bad();}
- _LIBCPP_INLINE_VISIBILITY iostate exceptions() const {return ios_base::exceptions();}
- _LIBCPP_INLINE_VISIBILITY void exceptions(iostate __iostate) {ios_base::exceptions(__iostate);}
+ _LIBCPP_ALWAYS_INLINE iostate exceptions() const {return ios_base::exceptions();}
+ _LIBCPP_ALWAYS_INLINE void exceptions(iostate __iostate) {ios_base::exceptions(__iostate);}
// 27.5.4.1 Constructor/destructor:
_LIBCPP_INLINE_VISIBILITY
@@ -652,7 +652,7 @@
char_type widen(char __c) const;
protected:
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
basic_ios() {// purposefully does no initialization
}
_LIBCPP_INLINE_VISIBILITY
@@ -661,7 +661,7 @@
_LIBCPP_INLINE_VISIBILITY
void move(basic_ios& __rhs);
#ifndef _LIBCPP_CXX03_LANG
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_ALWAYS_INLINE
void move(basic_ios&& __rhs) {move(__rhs);}
#endif
_LIBCPP_INLINE_VISIBILITY