summaryrefslogtreecommitdiffstats
path: root/libcxx/src/typeinfo.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2010-05-14 20:19:37 +0000
committerNick Kledzik <kledzik@apple.com>2010-05-14 20:19:37 +0000
commit111e0cbe5159e1bb23c3beb60e959b656b509eab (patch)
tree72ef6077b7ad5cecda870de1dd31dc8b527e6141 /libcxx/src/typeinfo.cpp
parent749c758632520b4ca64133c70aa4b775310fe5e7 (diff)
downloadbcm5719-llvm-111e0cbe5159e1bb23c3beb60e959b656b509eab.tar.gz
bcm5719-llvm-111e0cbe5159e1bb23c3beb60e959b656b509eab.zip
add headers and implementation for <new>, <exception>, and <typeinfo>
llvm-svn: 103795
Diffstat (limited to 'libcxx/src/typeinfo.cpp')
-rw-r--r--libcxx/src/typeinfo.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/libcxx/src/typeinfo.cpp b/libcxx/src/typeinfo.cpp
new file mode 100644
index 00000000000..8606897e5e0
--- /dev/null
+++ b/libcxx/src/typeinfo.cpp
@@ -0,0 +1,41 @@
+//===------------------------- typeinfo.cpp -------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+#include <stdlib.h>
+
+#include "typeinfo"
+
+std::bad_cast::bad_cast() throw()
+{
+}
+
+std::bad_cast::~bad_cast() throw()
+{
+}
+
+const char*
+std::bad_cast::what() const throw()
+{
+ return "std::bad_cast";
+}
+
+
+std::bad_typeid::bad_typeid() throw()
+{
+}
+
+std::bad_typeid::~bad_typeid() throw()
+{
+}
+
+const char*
+std::bad_typeid::what() const throw()
+{
+ return "std::bad_typeid";
+}
+
OpenPOWER on IntegriCloud