diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-06 05:26:49 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-06 05:26:49 +0000 |
commit | bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39 (patch) | |
tree | e288d8a3385f0e4ff95295b335db1568533fd9ab /libcxx/src/exception.cpp | |
parent | 5d9ecd23e8b7e84376d8361a49b6e6b923a623f5 (diff) | |
download | bcm5719-llvm-bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39.tar.gz bcm5719-llvm-bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39.zip |
Refer to _LIBCPP_MSVC macro where applicable
Replace preprocess conditions of defined(_MSC_VER) &&
!defined(__clang__) with defined(_LIBCPP_MSVC). NFC.
Patch by Dave Lee!
llvm-svn: 294171
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r-- | libcxx/src/exception.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp index f25041d8342..35a3a9abaeb 100644 --- a/libcxx/src/exception.cpp +++ b/libcxx/src/exception.cpp @@ -138,7 +138,7 @@ int uncaught_exceptions() _NOEXCEPT #elif defined(_LIBCPP_ABI_MICROSOFT) return __uncaught_exceptions(); #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("uncaught_exceptions not yet implemented") # else # warning uncaught_exception not yet implemented @@ -211,7 +211,7 @@ exception_ptr::~exception_ptr() _NOEXCEPT #elif defined(__GLIBCXX__) reinterpret_cast<__exception_ptr::exception_ptr*>(this)->~exception_ptr(); #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("exception_ptr not yet implemented") # else # warning exception_ptr not yet implemented @@ -230,7 +230,7 @@ exception_ptr::exception_ptr(const exception_ptr& other) _NOEXCEPT new (reinterpret_cast<void*>(this)) __exception_ptr::exception_ptr( reinterpret_cast<const __exception_ptr::exception_ptr&>(other)); #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("exception_ptr not yet implemented") # else # warning exception_ptr not yet implemented @@ -255,7 +255,7 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other) _NOEXCEPT reinterpret_cast<const __exception_ptr::exception_ptr&>(other); return *this; #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("exception_ptr not yet implemented") # else # warning exception_ptr not yet implemented @@ -299,7 +299,7 @@ exception_ptr current_exception() _NOEXCEPT ptr.__ptr_ = __cxa_current_primary_exception(); return ptr; #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING( "exception_ptr not yet implemented" ) # else # warning exception_ptr not yet implemented @@ -321,7 +321,7 @@ void rethrow_exception(exception_ptr p) #elif defined(__GLIBCXX__) rethrow_exception(reinterpret_cast<__exception_ptr::exception_ptr&>(p)); #else -# if defined(_MSC_VER) && ! defined(__clang__) +# if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("exception_ptr not yet implemented") # else # warning exception_ptr not yet implemented |