[libcxx-commits] [PATCH] D91041: [libc++] Remove emscripten handling from exception_fallback.ipp

Sam Clegg via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 9 16:11:06 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe84c3b2fc828: [libc++] Remove emscripten handling from exception_fallback.ipp (authored by sbc100).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91041/new/

https://reviews.llvm.org/D91041

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


Index: libcxx/src/support/runtime/exception_fallback.ipp
===================================================================
--- libcxx/src/support/runtime/exception_fallback.ipp
+++ libcxx/src/support/runtime/exception_fallback.ipp
@@ -49,7 +49,6 @@
   return __libcpp_atomic_load(&__terminate_handler);
 }
 
-#ifndef __EMSCRIPTEN__ // We provide this in JS
 _LIBCPP_NORETURN
 void
 terminate() _NOEXCEPT
@@ -72,9 +71,7 @@
     }
 #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 @@
   fprintf(stderr, "uncaught_exceptions not yet implemented\n");
   ::abort();
 }
-#endif // !__EMSCRIPTEN__
 
 
 exception::~exception() _NOEXCEPT


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91041.304007.patch
Type: text/x-patch
Size: 807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201110/a2efe352/attachment.bin>


More information about the libcxx-commits mailing list