Skip to content

Commit e84c3b2

Browse files
committed
[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
1 parent 4463b73 commit e84c3b2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libcxx/src/support/runtime/exception_fallback.ipp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ get_terminate() _NOEXCEPT
4949
return __libcpp_atomic_load(&__terminate_handler);
5050
}
5151

52-
#ifndef __EMSCRIPTEN__ // We provide this in JS
5352
_LIBCPP_NORETURN
5453
void
5554
terminate() _NOEXCEPT
@@ -72,9 +71,7 @@ terminate() _NOEXCEPT
7271
}
7372
#endif // _LIBCPP_NO_EXCEPTIONS
7473
}
75-
#endif // !__EMSCRIPTEN__
7674

77-
#if !defined(__EMSCRIPTEN__)
7875
bool uncaught_exception() _NOEXCEPT { return uncaught_exceptions() > 0; }
7976

8077
int uncaught_exceptions() _NOEXCEPT
@@ -83,7 +80,6 @@ int uncaught_exceptions() _NOEXCEPT
8380
fprintf(stderr, "uncaught_exceptions not yet implemented\n");
8481
::abort();
8582
}
86-
#endif // !__EMSCRIPTEN__
8783

8884

8985
exception::~exception() _NOEXCEPT

0 commit comments

Comments
 (0)