config: Use _LIBCPP_TYPE_VIS_ONLY with enum class
authorShoaib Meenai <smeenai@fb.com>
Mon, 12 Sep 2016 21:41:12 +0000 (21:41 +0000)
committerShoaib Meenai <smeenai@fb.com>
Mon, 12 Sep 2016 21:41:12 +0000 (21:41 +0000)
commit7afc8fa44c3036e0d99334d3a07f4d9720dce978
tree28ec12e904e1974929c3a0b1bef6f9d196499dbc
parent7c31d0ebc0de04b8f94e5c142ed3354ba7825d33
config: Use _LIBCPP_TYPE_VIS_ONLY with enum class

An enum class has associated type info. In the Microsoft ABI, type info
is emitted in the COMDAT section and isn't exported, so clang rightfully
complains about __declspec(dllexport) being unused for an enum class.
On other platforms, we still want to export the type info.

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

llvm-svn: 281264
libcxx/include/__config