1 //===------------------------- typeinfo.cpp -------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <stdlib.h> 10 11 #include "typeinfo" 12 13 std::bad_cast::bad_cast() throw() 14 { 15 } 16 17 std::bad_cast::~bad_cast() throw() 18 { 19 } 20 21 const char* 22 std::bad_cast::what() const throw() 23 { 24 return "std::bad_cast"; 25 } 26 27 28 std::bad_typeid::bad_typeid() throw() 29 { 30 } 31 32 std::bad_typeid::~bad_typeid() throw() 33 { 34 } 35 36 const char* 37 std::bad_typeid::what() const throw() 38 { 39 return "std::bad_typeid"; 40 } 41 42