summaryrefslogtreecommitdiffstats
path: root/libcxx/src/system_error.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-02 22:17:51 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-02 22:17:51 +0000
commit9aca97d6f932fc33d5630060edd27c51450ae9b6 (patch)
treed0721de90f6956df815804a7ee5b4ad808e08e15 /libcxx/src/system_error.cpp
parent5d25843f66fbe0bed55bb2ae196e2748d94496c8 (diff)
downloadbcm5719-llvm-9aca97d6f932fc33d5630060edd27c51450ae9b6.tar.gz
bcm5719-llvm-9aca97d6f932fc33d5630060edd27c51450ae9b6.zip
Introduce _LIBCPP_DEPRECATED_ABI_EXTERNAL_ERROR_CATEGORY_CONSTRUCTOR ABI option.
Currently libc++ compiles a special version of error_category() into the dylib. This definition is no longer needed, and doesn't work on Windows due to dllimport/dllexport semantics. For those reasons this patch introduces an option to disable/enable this definition. By default the definition is provided in ABI v1 except on windows. This patch also addresses D28210. llvm-svn: 290840
Diffstat (limited to 'libcxx/src/system_error.cpp')
-rw-r--r--libcxx/src/system_error.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp
index 3a2255425f0..4ecafeaa3b8 100644
--- a/libcxx/src/system_error.cpp
+++ b/libcxx/src/system_error.cpp
@@ -29,9 +29,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// class error_category
+#if defined(_LIBCPP_DEPRECATED_ABI_EXTERNAL_ERROR_CATEGORY_CONSTRUCTOR)
error_category::error_category() _NOEXCEPT
{
}
+#endif
error_category::~error_category() _NOEXCEPT
{
OpenPOWER on IntegriCloud