diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-07-07 21:03:52 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-07-07 21:03:52 +0000 |
commit | 11af28bdbdff9132d225014ce4964b1bc56370cf (patch) | |
tree | 696c1c64c9c004cd2d0aefde14133e9b53d5c7aa /libcxx/src | |
parent | be652e6a24069949e5a1fa06e7c68c5550fc23c3 (diff) | |
download | bcm5719-llvm-11af28bdbdff9132d225014ce4964b1bc56370cf.tar.gz bcm5719-llvm-11af28bdbdff9132d225014ce4964b1bc56370cf.zip |
Fixing up some ABI issues
llvm-svn: 134639
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/string.cpp | 46 | ||||
-rw-r--r-- | libcxx/src/strstream.cpp | 35 |
2 files changed, 0 insertions, 81 deletions
diff --git a/libcxx/src/string.cpp b/libcxx/src/string.cpp index 793a58be8c6..7e651a1a8e0 100644 --- a/libcxx/src/string.cpp +++ b/libcxx/src/string.cpp @@ -19,52 +19,6 @@ template class __basic_string_common<true>; template class basic_string<char>; template class basic_string<wchar_t>; -template enable_if<__is_forward_iterator<char const*>::value, void>::type - basic_string<char, char_traits<char>, allocator<char> > - ::__init<char const*>(char const*, char const*); - -template enable_if<__is_forward_iterator<wchar_t const*>::value, void>::type - basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > - ::__init<wchar_t const*>(wchar_t const*, wchar_t const*); - -template - enable_if<__is_forward_iterator<char*>::value, - basic_string<char, char_traits<char>, allocator<char> >&>::type - basic_string<char, char_traits<char>, allocator<char> >:: - append<char*>(char*, char*); - -template - enable_if<__is_forward_iterator<wchar_t*>::value, - basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >&>::type - basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >:: - append<wchar_t*>(wchar_t*, wchar_t*); - -template - enable_if<__is_forward_iterator<char const*>::value, - string::iterator>::type - string:: - insert<char const*>(string::const_iterator, char const*, char const*); - -template - enable_if<__is_forward_iterator<wchar_t const*>::value, - wstring::iterator>::type - wstring:: - insert<wchar_t const*>(wstring::const_iterator, wchar_t const*, wchar_t const*); - -template - enable_if<__is_input_iterator<char const*>::value, string&>::type - string:: - replace<char const*>(string::const_iterator, string::const_iterator, char const*, char const*); - -template - enable_if<__is_input_iterator<wchar_t const*>::value, wstring&>::type - wstring:: - replace<wchar_t const*>(wstring::const_iterator, wstring::const_iterator, wchar_t const*, wchar_t const*); - -template - enable_if<__is_forward_iterator<wchar_t*>::value, wstring&>::type - wstring::assign<wchar_t*>(wchar_t*, wchar_t*); - template string operator+<char, char_traits<char>, allocator<char> >(char const*, string const&); diff --git a/libcxx/src/strstream.cpp b/libcxx/src/strstream.cpp index c2b7f42aac6..53139509edf 100644 --- a/libcxx/src/strstream.cpp +++ b/libcxx/src/strstream.cpp @@ -100,41 +100,6 @@ strstreambuf::strstreambuf(const unsigned char* __gnext, streamsize __n) __init((char*)__gnext, __n, nullptr); } -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES - -strstreambuf::strstreambuf(strstreambuf&& __rhs) - : streambuf(__rhs), - __strmode_(__rhs.__strmode_), - __alsize_(__rhs.__alsize_), - __palloc_(__rhs.__palloc_), - __pfree_(__rhs.__pfree_) -{ - __rhs.setg(nullptr, nullptr, nullptr); - __rhs.setp(nullptr, nullptr); -} - -strstreambuf& -strstreambuf::operator=(strstreambuf&& __rhs) -{ - if (eback() && (__strmode_ & __allocated) != 0 && (__strmode_ & __frozen) == 0) - { - if (__pfree_) - __pfree_(eback()); - else - delete [] eback(); - } - streambuf::operator=(__rhs); - __strmode_ = __rhs.__strmode_; - __alsize_ = __rhs.__alsize_; - __palloc_ = __rhs.__palloc_; - __pfree_ = __rhs.__pfree_; - __rhs.setg(nullptr, nullptr, nullptr); - __rhs.setp(nullptr, nullptr); - return *this; -} - -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES - strstreambuf::~strstreambuf() { if (eback() && (__strmode_ & __allocated) != 0 && (__strmode_ & __frozen) == 0) |