summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/exception.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-01-24 21:48:10 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-01-24 21:48:10 +0000
commit7fdfd5d2695f537915cc1000044d97086a2d2115 (patch)
tree3fc8e9f0235ac4415f74872818ee8e9f95c6a86d /libcxxabi/src/exception.cpp
parent35bc8f915923904a38827f103c0403a8e3a70dfb (diff)
downloadbcm5719-llvm-7fdfd5d2695f537915cc1000044d97086a2d2115.tar.gz
bcm5719-llvm-7fdfd5d2695f537915cc1000044d97086a2d2115.zip
Add some needed symbols in exception.cpp and eliminate dependence upon uncaught_exception() from cxa_vector.cpp. libc++abi is very nearly a self-contained (though not complete) library now.
llvm-svn: 148866
Diffstat (limited to 'libcxxabi/src/exception.cpp')
-rw-r--r--libcxxabi/src/exception.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/libcxxabi/src/exception.cpp b/libcxxabi/src/exception.cpp
new file mode 100644
index 00000000000..c47a9b76266
--- /dev/null
+++ b/libcxxabi/src/exception.cpp
@@ -0,0 +1,41 @@
+//===---------------------------- exception.cpp ---------------------------===//
+//
+// 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.
+//
+//===----------------------------------------------------------------------===//
+
+#include <exception>
+
+#pragma GCC visibility push(default)
+
+namespace std
+{
+
+// exception
+
+exception::~exception() _NOEXCEPT
+{
+}
+
+const char* exception::what() const _NOEXCEPT
+{
+ return "std::exception";
+}
+
+// bad_exception
+
+bad_exception::~bad_exception() _NOEXCEPT
+{
+}
+
+const char* bad_exception::what() const _NOEXCEPT
+{
+ return "std::bad_exception";
+}
+
+} // std
+
+#pragma GCC visibility pop
OpenPOWER on IntegriCloud