xref: /llvm-project/libcxxabi/src/stdlib_typeinfo.cpp (revision eb8650a75793b2bd079d0c8901ff066f129061da)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include <typeinfo>
10 
11 namespace std
12 {
13 
14 // type_info
15 
~type_info()16 type_info::~type_info()
17 {
18 }
19 
20 // bad_cast
21 
bad_cast()22 bad_cast::bad_cast() noexcept
23 {
24 }
25 
~bad_cast()26 bad_cast::~bad_cast() noexcept
27 {
28 }
29 
30 const char*
what() const31 bad_cast::what() const noexcept
32 {
33   return "std::bad_cast";
34 }
35 
36 // bad_typeid
37 
bad_typeid()38 bad_typeid::bad_typeid() noexcept
39 {
40 }
41 
~bad_typeid()42 bad_typeid::~bad_typeid() noexcept
43 {
44 }
45 
46 const char*
what() const47 bad_typeid::what() const noexcept
48 {
49   return "std::bad_typeid";
50 }
51 
52 }  // std
53