[cfe-commits] [libcxx] r173165 - /libcxx/trunk/src/exception.cpp
Howard Hinnant
hhinnant at apple.com
Tue Jan 22 06:48:10 PST 2013
Author: hhinnant
Date: Tue Jan 22 08:48:10 2013
New Revision: 173165
URL: http://llvm.org/viewvc/llvm-project?rev=173165&view=rev
Log:
Saleem Abdulrasool: __terminate_handler and __unexpected_handler are defined but not used when
building against libsupc++ as the functions for which they are used are provided
by libsupc++. Simply preprocess them away when building against libsupc++.
Modified:
libcxx/trunk/src/exception.cpp
Modified: libcxx/trunk/src/exception.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/exception.cpp?rev=173165&r1=173164&r2=173165&view=diff
==============================================================================
--- libcxx/trunk/src/exception.cpp (original)
+++ libcxx/trunk/src/exception.cpp Tue Jan 22 08:48:10 2013
@@ -33,7 +33,7 @@
#if defined(LIBCXXRT) || defined(_LIBCPPABI_VERSION)
#define HAVE_DEPENDENT_EH_ABI 1
#endif
-#else // __has_include(<cxxabi.h>)
+#elif !defined(__GLIBCXX__) // __has_include(<cxxabi.h>)
static std::terminate_handler __terminate_handler;
static std::unexpected_handler __unexpected_handler;
#endif // __has_include(<cxxabi.h>)
More information about the cfe-commits
mailing list