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 | |
16 | type_info::~type_info() |
17 | { |
18 | } |
19 | |
20 | // bad_cast |
21 | |
22 | bad_cast::bad_cast() noexcept |
23 | { |
24 | } |
25 | |
26 | bad_cast::~bad_cast() noexcept |
27 | { |
28 | } |
29 | |
30 | const char* |
31 | bad_cast::what() const noexcept |
32 | { |
33 | return "std::bad_cast" ; |
34 | } |
35 | |
36 | // bad_typeid |
37 | |
38 | bad_typeid::bad_typeid() noexcept |
39 | { |
40 | } |
41 | |
42 | bad_typeid::~bad_typeid() noexcept |
43 | { |
44 | } |
45 | |
46 | const char* |
47 | bad_typeid::what() const noexcept |
48 | { |
49 | return "std::bad_typeid" ; |
50 | } |
51 | |
52 | } // std |
53 | |