[libc++] Instantiate additional <iostream> members in the dylib
authorLouis Dionne <ldionne@apple.com>
Wed, 21 Oct 2020 15:11:45 +0000 (11:11 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 12 Nov 2020 18:52:47 +0000 (13:52 -0500)
commit997d41cdec536a0b632505d9b0c4ab5dec5d7d12
tree8fe99d42e1824509304d5270b0cac88d2b4958d9
parent777ca48c9f080ff1cd2d3791b8e23504bda7be40
[libc++] Instantiate additional <iostream> members in the dylib

This commit adds new explicit instantiations for some classes in <iostream>
in the library. This is done after noticing that many programs that use
streams end up containing weak definitions of these classes, which has a
negative impact on both code size and load times (due to the need to
resolve weak symbols at load time). Note that we are just adding the
additional explicit instantiations for the `char` specializations, since
the `wchar_t` specializations are not used as often, and as a result there
wouldn't be a clear benefit.

This change is not an ABI break, since we are just adding additional
symbols.

Differential Revision: https://reviews.llvm.org/D90677
libcxx/include/__config
libcxx/include/fstream
libcxx/include/sstream
libcxx/lib/abi/CHANGELOG.TXT
libcxx/lib/abi/x86_64-apple-darwin.v1.abilist
libcxx/lib/abi/x86_64-unknown-linux-gnu.v1.abilist
libcxx/src/ios.instantiations.cpp