[cfe-commits] [libcxxabi] r148853 - in /libcxxabi/trunk/src: private_typeinfo.cpp typeinfo.cpp

Howard Hinnant hhinnant at apple.com
Tue Jan 24 13:01:01 PST 2012


Author: hhinnant
Date: Tue Jan 24 15:01:01 2012
New Revision: 148853

URL: http://llvm.org/viewvc/llvm-project?rev=148853&view=rev
Log:
Add new file for public type_info-related signatures

Added:
    libcxxabi/trunk/src/typeinfo.cpp
Modified:
    libcxxabi/trunk/src/private_typeinfo.cpp

Modified: libcxxabi/trunk/src/private_typeinfo.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/private_typeinfo.cpp?rev=148853&r1=148852&r2=148853&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.cpp (original)
+++ libcxxabi/trunk/src/private_typeinfo.cpp Tue Jan 24 15:01:01 2012
@@ -13,19 +13,6 @@
 
 #include <iostream>
 
-namespace std
-{
-
-#pragma GCC visibility push(default)
-
-type_info::~type_info()
-{
-}
-
-#pragma GCC visibility pop
-
-}  // std
-
 namespace __cxxabiv1
 {
 

Added: libcxxabi/trunk/src/typeinfo.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/typeinfo.cpp?rev=148853&view=auto
==============================================================================
--- libcxxabi/trunk/src/typeinfo.cpp (added)
+++ libcxxabi/trunk/src/typeinfo.cpp Tue Jan 24 15:01:01 2012
@@ -0,0 +1,57 @@
+//===----------------------------- typeinfo.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 <typeinfo>
+
+#pragma GCC visibility push(default)
+
+namespace std
+{
+
+// type_info
+
+type_info::~type_info()
+{
+}
+
+// bad_cast
+
+bad_cast::bad_cast() _NOEXCEPT
+{
+}
+
+bad_cast::~bad_cast() _NOEXCEPT
+{
+}
+
+const char*
+bad_cast::what() const _NOEXCEPT
+{
+  return "std::bad_cast";
+}
+
+// bad_typeid
+
+bad_typeid::bad_typeid() _NOEXCEPT
+{
+}
+
+bad_typeid::~bad_typeid() _NOEXCEPT
+{
+}
+
+const char*
+bad_typeid::what() const _NOEXCEPT
+{
+  return "std::bad_typeid";
+}
+
+}  // std
+
+#pragma GCC visibility pop





More information about the cfe-commits mailing list