summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src/support/runtime/exception_libcxxrt.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcxx/src/support/runtime/exception_libcxxrt.ipp')
-rw-r--r--lib/libcxx/src/support/runtime/exception_libcxxrt.ipp41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/libcxx/src/support/runtime/exception_libcxxrt.ipp b/lib/libcxx/src/support/runtime/exception_libcxxrt.ipp
new file mode 100644
index 00000000000..6d9e0cff58d
--- /dev/null
+++ b/lib/libcxx/src/support/runtime/exception_libcxxrt.ipp
@@ -0,0 +1,41 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LIBCXXRT
+#error this header may only be used when targeting libcxxrt
+#endif
+
+namespace std {
+
+bad_exception::~bad_exception() _NOEXCEPT
+{
+}
+
+const char* bad_exception::what() const _NOEXCEPT
+{
+ return "std::bad_exception";
+}
+
+
+bad_array_length::bad_array_length() _NOEXCEPT
+{
+}
+
+bad_array_length::~bad_array_length() _NOEXCEPT
+{
+}
+
+const char*
+bad_array_length::what() const _NOEXCEPT
+{
+ return "bad_array_length";
+}
+
+} // namespace std