llvm-project/libcxx/lib
Louis Dionne 9b3222f613 [libc++] Make sure we can build libc++ with -fvisibility=hidden
Summary:
When building with -fvisibility=hidden, some symbols do not get exported from
libc++.dylib. This means that some entities are not explicitly given default
visibility in the source code, and that we rely on the fact -fvisibility=default
is the default. This commit explicitly gives default visibility to those
symbols to avoid being dependent on the command line flags used.

The commit also remove symbols from the dylib -- those symbols do not
actually need to be exported from the dylib and this should not be an
ABI break.

Finally, in the future, we may want to mark the whole std:: namespace as
having hidden visibility (to switch from opt-out to opt-in), in which
case the changes done in this commit will be required.

Reviewers: EricWF

Subscribers: mgorny, christof, dexonsmith, libcxx-commits

Differential Revision: https://reviews.llvm.org/D52662

llvm-svn: 345260
2018-10-25 12:13:43 +00:00
..
abi [libc++] Make sure we can build libc++ with -fvisibility=hidden 2018-10-25 12:13:43 +00:00
CMakeLists.txt [libcxx] Remove custom CMake code targeting Mac OS 10.6 2018-10-16 00:31:32 +00:00
libc++abi-new-delete.exp [libcxx] Fix check-cxx-abilist on OS X 2017-04-15 05:41:45 +00:00
libc++abi.exp ABI: Fix for undefined "___cxa_deleted_virtual" symbol in MacOSX 2017-09-17 20:59:43 +00:00
libc++abi2.exp ABI: Fix for undefined "___cxa_deleted_virtual" symbol in MacOSX 2017-09-17 20:59:43 +00:00
libc++sjlj-abi.exp ABI: Fix for undefined "___cxa_deleted_virtual" symbol in MacOSX 2017-09-17 20:59:43 +00:00
libc++unexp.exp
notweak.exp
weak.exp