[libcxx-commits] [libcxx] e84c3b2 - [libc++] Remove emscripten handling from exception_fallback.ipp

Sam Clegg via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 9 16:10:51 PST 2020


Author: Sam Clegg
Date: 2020-11-09T16:09:54-08:00
New Revision: e84c3b2fc82806a7f2f6ec466f08da94ea650198

URL: https://github.com/llvm/llvm-project/commit/e84c3b2fc82806a7f2f6ec466f08da94ea650198
DIFF: https://github.com/llvm/llvm-project/commit/e84c3b2fc82806a7f2f6ec466f08da94ea650198.diff

LOG: [libc++] Remove emscripten handling from exception_fallback.ipp

Emscripten doesn't use this file (at least not anymore), it uses
exception_libcxxabi.ipp since _LIBCPPABI_VERSION is defined.

Differential Revision: https://reviews.llvm.org/D91041

Added: 
    

Modified: 
    libcxx/src/support/runtime/exception_fallback.ipp

Removed: 
    


################################################################################
diff  --git a/libcxx/src/support/runtime/exception_fallback.ipp b/libcxx/src/support/runtime/exception_fallback.ipp
index 376a0381f545..faa112f7f3a4 100644
--- a/libcxx/src/support/runtime/exception_fallback.ipp
+++ b/libcxx/src/support/runtime/exception_fallback.ipp
@@ -49,7 +49,6 @@ get_terminate() _NOEXCEPT
   return __libcpp_atomic_load(&__terminate_handler);
 }
 
-#ifndef __EMSCRIPTEN__ // We provide this in JS
 _LIBCPP_NORETURN
 void
 terminate() _NOEXCEPT
@@ -72,9 +71,7 @@ terminate() _NOEXCEPT
     }
 #endif  // _LIBCPP_NO_EXCEPTIONS
 }
-#endif // !__EMSCRIPTEN__
 
-#if !defined(__EMSCRIPTEN__)
 bool uncaught_exception() _NOEXCEPT { return uncaught_exceptions() > 0; }
 
 int uncaught_exceptions() _NOEXCEPT
@@ -83,7 +80,6 @@ int uncaught_exceptions() _NOEXCEPT
   fprintf(stderr, "uncaught_exceptions not yet implemented\n");
   ::abort();
 }
-#endif // !__EMSCRIPTEN__
 
 
 exception::~exception() _NOEXCEPT


        


More information about the libcxx-commits mailing list