diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-29 23:05:11 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-29 23:05:11 +0000 |
commit | ef423b66c45b0b4412c51cd1f78ef544f966dd40 (patch) | |
tree | fb6a92c6a3102b575748b8a6ce107a8112d3591c /libcxxabi/src | |
parent | 0f6b5235136eab0b54a7fb65c1b97be2d7827aa1 (diff) |
Move _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS macro to build system
_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS is currently used to
bring back std::unexpected, which is removed in C++17, but still needed
for libc++abi for backward compatibility.
This macro used to define in cxa_exception.cpp only, but actually
needed for all sources that touches exceptions.
So, a build-system-level macro is better fit to define this macro.
https://reviews.llvm.org/D46056
Patch from Taiju Tsuiku <tzik@chromium.org>!
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/cxa_exception.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp index 5c32a155f09..397427a0299 100644 --- a/libcxxabi/src/cxa_exception.cpp +++ b/libcxxabi/src/cxa_exception.cpp @@ -11,8 +11,6 @@ // //===----------------------------------------------------------------------===// -#define _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS - #include "cxxabi.h" #include <exception> // for std::terminate |