diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-01-02 22:17:51 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-01-02 22:17:51 +0000 |
commit | 9aca97d6f932fc33d5630060edd27c51450ae9b6 (patch) | |
tree | d0721de90f6956df815804a7ee5b4ad808e08e15 /libcxx/src/system_error.cpp | |
parent | 5d25843f66fbe0bed55bb2ae196e2748d94496c8 (diff) | |
download | bcm5719-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.cpp | 2 |
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 { |