1 //===---------------------------- exception.cpp ---------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include <exception>
11 
12 #pragma GCC visibility push(default)
13 
14 namespace std
15 {
16 
17 // exception
18 
~exception()19 exception::~exception() _NOEXCEPT
20 {
21 }
22 
what() const23 const char* exception::what() const _NOEXCEPT
24 {
25   return "std::exception";
26 }
27 
28 // bad_exception
29 
~bad_exception()30 bad_exception::~bad_exception() _NOEXCEPT
31 {
32 }
33 
what() const34 const char* bad_exception::what() const _NOEXCEPT
35 {
36   return "std::bad_exception";
37 }
38 
39 }  // std
40 
41 #pragma GCC visibility pop
42