Skip to content

Commit

Permalink
[libc++] Remove emscripten handling from exception_fallback.ipp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbc100 committed Nov 10, 2020
1 parent 4463b73 commit e84c3b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libcxx/src/support/runtime/exception_fallback.ipp
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -83,7 +80,6 @@ int uncaught_exceptions() _NOEXCEPT
fprintf(stderr, "uncaught_exceptions not yet implemented\n");
::abort();
}
#endif // !__EMSCRIPTEN__


exception::~exception() _NOEXCEPT
Expand Down

0 comments on commit e84c3b2

Please sign in to comment.